FEATURE: add unlimited depth of subpages
This commit is contained in:
@@ -82,6 +82,12 @@ class Content extends Model
|
||||
$this->subpages = $this->getPageQuery()
|
||||
->where('parent_id', $this->id)
|
||||
->get();
|
||||
|
||||
// convert JSON settings into stdClass
|
||||
foreach ($this->subpages as $subpage) {
|
||||
$subpage->module_settings = json_decode($subpage->module_settings);
|
||||
}
|
||||
|
||||
$this->subpagesInit = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user