mirror of
https://github.com/getgrav/grav.git
synced 2026-09-10 21:30:04 +02:00
add method to set raw markdown on page
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user