elkex
03/09/2023, 1:29 PMprotected $showOnlyParentItemsInBrowsers = true;
protected $nestedItemsDepth = 3;
protected function form($id, $item = null)
{
$item = $this->repository->getById($id, $this->formWith, $this->formWithCount);
$this->permalinkBase = $item->ancestorsSlug;
return parent::form($id, $item);
}
And I also added the following to the frontend controller:
$page = app(PageRepository::class)->forNestedSlug($slug);
However it still only returns my top slug..