[solved]: Menu Manager and Navigator
[solved]: Menu Manager and Navigator
I have just upgraded to 2.0 and I am willing to migrate from the old Menu Manager (which I use in my site) to the new Navigator. Is there an How-To with the correct procedure for this?
Last edited by saltydog on Wed Sep 16, 2015 9:13 am, edited 2 times in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Menu Manager and Navigator
There is no significant difference IIRC with the data available in the nodes in MenuManager and Navigator with exception that Navigator returns a hierarchical data structure, whereas in MenuManager it is flat.
With a hierarchical data structure you can use recursion, and things like the @first and @last and @index properties of the smarty foreach to more easily create navigations that you can then style with CSS.
There is no tutorial for conversion, because conversion depends on your menu, it's features, and what 'tricks' you had to do to get it to work in MenuManager.
There are a few sample template with a fresh installation however.
With a hierarchical data structure you can use recursion, and things like the @first and @last and @index properties of the smarty foreach to more easily create navigations that you can then style with CSS.
There is no tutorial for conversion, because conversion depends on your menu, it's features, and what 'tricks' you had to do to get it to work in MenuManager.
There are a few sample template with a fresh installation however.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Menu Manager and Navigator
Thanks! I managed to let it work. It is an easy process, indeed!
Re: SOLVED: Menu Manager and Navigator
one difference i noticed today: the above used to work even where alias1 and/or alias2 were flagged as don't show in menu. now required
Code: Select all
{menu template="simpleTabMenu" loadprops=0 items="alias1,alias2"}
Code: Select all
{Navigator template="simpleTabMenu" loadprops=0 show_all=1 items="alias1,alias2"}
Re: SOLVED: Menu Manager and Navigator
Another one is this;
(example in Module Help, CMSMS Navigation Builder (Navigator)
But it is only working with this code, without the $;
(example in Module Help, CMSMS Navigation Builder (Navigator)
Code: Select all
{Navigator number_of_levels=2 childrenof=$page_alias}
Code: Select all
{Navigator number_of_levels=2 childrenof='page_alias'}
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: SOLVED: Menu Manager and Navigator
Code: Select all
{Navigator number_of_levels=2 childrenof=$page_alias}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: SOLVED: Menu Manager and Navigator
Indeed: show_all=1 had to be added to this Navigator-code! Otherwise, not any menu-item shows in my case!rotezecke wrote:one difference i noticed today:the above used to work even where alias1 and/or alias2 were flagged as don't show in menu.Code: Select all
{menu template="simpleTabMenu" loadprops=0 items="alias1,alias2"}
now requiredCode: Select all
{Navigator template="simpleTabMenu" loadprops=0 show_all=1 items="alias1,alias2"}
Thanks rotezecke!!
willemijn