From 9382dc9c1032ad0d620e655cfc698151a63ee05c Mon Sep 17 00:00:00 2001 From: Gert Date: Wed, 13 May 2015 18:52:13 +0200 Subject: [PATCH] add method to set raw markdown on page --- system/src/Grav/Common/Page/Page.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 1d8a80241..7037dfe40 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -361,7 +361,6 @@ class Page $this->id(time().md5($this->filePath())); $this->content = null; } - // If no content, process it if ($this->content === null) { // Get media @@ -568,6 +567,15 @@ class Page return $default; } + public function rawMarkdown($var = null) + { + if ($var !== null) { + $this->raw_content = $var; + } + + return $this->raw_content; + } + /** * Get file object to the page. *