Example #1
0
 public function getChildren(Page $page)
 {
     $this->authorize('editChildrenBasic', $page);
     list($orderCol, $orderDirection) = $page->getChildOrderingPolicy();
     $templates = TemplateFacade::findValid();
     return view("{$this->viewPrefix}.children", ['childTemplate' => $page->getDefaultChildTemplateId(), 'grandchildTemplate' => $page->getDefaultGrandchildTemplateId(), 'templates' => $templates, 'orderColumn' => $orderCol, 'orderDirection' => $orderDirection, 'page' => $page]);
 }
Example #2
0
 /**
  * Show a form to change the template of the page.
  *
  * @param Page $page
  *
  * @return View
  */
 public function getTemplate(Page $page)
 {
     $this->authorize('editTemplate', $page);
     return view("{$this->viewPrefix}.template", ['current' => $page->getTemplate(), 'templates' => TemplateFacade::findValid()]);
 }