how to set custom template to autonav menu sitewide
Permalink
I have a custom drop down nav template I'm applying to autonav menu but I can't see any way to set the template as default sitewide.
I did try to set default template under page types (in dashboard) but it only changed the parent page, and not child pages.
this is driving me crazy.
please help
I did try to set default template under page types (in dashboard) but it only changed the parent page, and not child pages.
this is driving me crazy.
please help
justinjools,
Another solution might be to place one autonav into a GlobalArea instead of an Area. This would keep the autonav's template consistent across every page.
This, however, wouldn't work if you're just hoping to place the autonav block into various parts of each page.
Another solution might be to place one autonav into a GlobalArea instead of an Area. This would keep the autonav's template consistent across every page.
$a = new GlobalArea('Navigation'); $a->display($c);
This, however, wouldn't work if you're just hoping to place the autonav block into various parts of each page.
UPDATE Blocks set bFilename = 'header_menu.php' where btID = (SELECT btID from BlockTypes where btHandle = 'autonav')
then in your controller for your autonav make your $args['bFilename'] = $fileName (or populated from a dropdown on your add/edit form thing);
that's it.