add method to set raw markdown on page

This commit is contained in:
Gert
2015-05-13 18:52:13 +02:00
parent aa85f20aa9
commit 9382dc9c10

View File

@@ -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.
*