FEATURE: add unlimited depth of subpages

This commit is contained in:
Michal Kváček
2016-04-05 21:42:22 +02:00
parent 9570ad3da3
commit 7446e2f4ef
3 changed files with 10 additions and 2 deletions
+6
View File
@@ -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;
}