How to add sub menu items to The Station navigation menu?

  • Question
  • Updated 3 years ago
To add a page to the main menu I publish a new static page and choose yes for the add to menu option. But how do I make another static page appear in the menu dropdown as a sub-item of the original page?
Photo of EricE

Eric

  • 10 Posts
  • 0 Reply Likes
  • confused

Posted 4 years ago

  • 1
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1159 Posts
  • 39 Reply Likes
Out of the box static pages published like that appears as top level tabs only.

The blog does publish to the dropdown menu however. It uses a category group to build that menu.

You can of course customize this to work as you'd like. Have a look in /embeds/global_header.html .. the menu is built there. If you'd like to have another pulldown menu somewhere you could for instance change the "include in menu" dropdown to have values "no", "menu1", "menu2" and then fetch the items for "menu1" for instance doing this:


{exp:pageslist conditional_field='include_in_menu' conditional_field_value='menu1' selected_add='current_page_item' sort_by='static_order'}


.. *or* you could use the method the blog currently uses where you would add another category group for your new section, attaching the category group to your channel and then publishing to it, fetching the menu litems like the blog menu does it:


{exp:categorylist group_id="2" default_css_class="page_item" current_css_class="current_page_item" add_to_url="blog"}

(notice I changed the group_id to 2 instead of 1 which is the group id of the category group attached to the blog)

Anyway if you look in embeds/global_header.html you'll see the menu is built there (look for <ul id="pagenav">)
Photo of Mariia Zaiats

Mariia Zaiats

  • 1 Post
  • 0 Reply Likes
Hello, here you can find useful information regarding the problem you’ve encountered http://www.atwix.com/magento/how-to-a...

Hope this helps
Photo of Bjørn Børresen

Bjørn Børresen, Company Admin

  • 1159 Posts
  • 39 Reply Likes
Thanks, but this post is about ExpressionEngine not Magento.