cms:onGetPageNavigationVisibility event
The cms:onGetPageNavigationVisibility event allows modules to hide a page from automatically generated menus and site maps. The event handler should accept a single parameter - the page object (Cms_Page). The handler function should return FALSE if the page should not be visible and TRUE if it should be visible. If the event is handled by different modules, a page would not be visible if any handler returned FALSE.
Event handler example:
public function subscribeEvents()
{
Backend::$events->addEvent('cms:onGetPageNavigationVisibility', $this, 'eval_page_visibility');
}
public function eval_page_visibility($page)
{
return $page->url != '/hidden_page';
}
Next: cms:onExtendPagesToolbar event
Previous: cms:onDeletePage event
Return to Handling LemonStand events

