Как вместо test, указать {{ page.getParent.id }} ?
$this[‘activeMenuItem’] = ‘test’;
{{ page.getParent.id }} - выводит id родительской страницы staticPage
MaxxQ90
Попробуйте так
$this[‘activeMenuItem’] = $this->page->getParent()->id;
reazzon
Error Call to undefined method October\Rain\Halcyon\Builder::getParent()
Но теперь пытаюсь всё сделать через Блог, и проблема в принципе аналогичная, нужно на activeMenuItem назначить slug категорий Блога.
Выводятся так {{ post.categories[0].slug }}, знатоки, подскажите))
Slug категорий Блога в activeMenuItem
function onEnd() { $this['activeMenuItem'] = $this->post->categories[0]->slug; }