Jump to content

Resolved...Markup Simple Navigation - can't add multiple templates to: 'selector' => 'template!=index|post|category'


hollyvalero
 Share

Recommended Posts

Hi, this used to work when using MarkupSimple Navigation - trying to omit certain pages so "Blog" would appear in the top menu, but there wouldn't be a dropdown menu with endless posts...


$treeMenu = $modules->get("MarkupSimpleNavigation");
$rootPage = $pages->get("/");
$options = array(
'current_class' => 'current-menu-item',
'has_children_class' => 'parent',
'max_levels' => 2,
'outer_tpl' => '<ul id="main-menu">||</ul>',
'inner_tpl' => '<ul class="sub-menu">||</ul>',
'item_current_tpl' => '<strong>{title}</strong>',
'selector' => 'template!=post|glossary|category'
);
echo $treeMenu->render($options, $rootPage); // render menu

 

EDIT:  Played around a bit with this, and it does work with one template as the divider | is what is causing the problem, so this works and if you have only one template that needs this, you're set. 
'selector' => 'template!=bloghome'

 

Second edit: I think this was triggered by DEV update 3.0.183 - so this should fix itself, but leaving this here in case anyone has a similar problem.... 

 

Link to comment
Share on other sites

  • hollyvalero changed the title to Resolved...Markup Simple Navigation - can't add multiple templates to: 'selector' => 'template!=index|post|category'

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...