Page 1 of 1

[solved]: Menu Manager and Navigator

Posted: Sun Sep 13, 2015 2:53 pm
by saltydog
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?

Re: Menu Manager and Navigator

Posted: Sun Sep 13, 2015 3:01 pm
by calguy1000
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.

Re: Menu Manager and Navigator

Posted: Sun Sep 13, 2015 3:44 pm
by saltydog
Thanks! I managed to let it work. It is an easy process, indeed!

Re: SOLVED: Menu Manager and Navigator

Posted: Mon Sep 14, 2015 4:14 am
by rotezecke
one difference i noticed today:

Code: Select all

{menu template="simpleTabMenu" loadprops=0 items="alias1,alias2"}
the above used to work even where alias1 and/or alias2 were flagged as don't show in menu. now required

Code: Select all

{Navigator template="simpleTabMenu" loadprops=0 show_all=1 items="alias1,alias2"}

Re: SOLVED: Menu Manager and Navigator

Posted: Tue Sep 15, 2015 3:04 pm
by (M)
Another one is this;
(example in Module Help, CMSMS Navigation Builder (Navigator)

Code: Select all

{Navigator number_of_levels=2 childrenof=$page_alias}
But it is only working with this code, without the $;

Code: Select all

{Navigator number_of_levels=2 childrenof='page_alias'}

Re: SOLVED: Menu Manager and Navigator

Posted: Tue Sep 15, 2015 3:14 pm
by calguy1000

Code: Select all

{Navigator number_of_levels=2 childrenof=$page_alias}
Works fine for me... just tested it.

Re: SOLVED: Menu Manager and Navigator

Posted: Mon Nov 02, 2015 4:04 pm
by mev
rotezecke wrote:one difference i noticed today:

Code: Select all

{menu template="simpleTabMenu" loadprops=0 items="alias1,alias2"}
the above used to work even where alias1 and/or alias2 were flagged as don't show in menu.
now required

Code: Select all

{Navigator template="simpleTabMenu" loadprops=0 show_all=1 items="alias1,alias2"}
Indeed: show_all=1 had to be added to this Navigator-code! Otherwise, not any menu-item shows in my case!
Thanks rotezecke!!

willemijn