Problem with MenuManager 1.7.2 in CMSMS 1.9.2
Posted: Tue Jan 11, 2011 8:38 pm
Hello everyone,
I am using CMSMS 1.9.2 for first time. Before I've used 1.6.x. And now I have problem with new version of MenuManager and with value $node->parent. In older version this contains TRUE is $node is parent of current page (as help says aswell). This value has been true even if menu levels has been limited to number_of_levels=1 and current page has been from 3rd level for example. This I am using when I am displaying main menu of page and want to highlight current tree part however main menu is not for showing submenus (top menu vertical, submenu somewhere else horizontal).
In new version of MenuManager is $node->parent value true only if current page is in displayed menu as well. So, if I don't limit number_of_levels, then parent on first level=true. If I limit number_of_levels=1, same menu in same place is $node->parent=false. In my eyes it is bug, but may be you can find some mistake in my usage. My problem is, that "one level menu" doesn't work with parent value properly as said in help and as it has been in older version. I don't want to load whole menu and hide lower levels by css... It causes that I am repeating submenu twice in HTML without any reason.
Thank you help!
Pavel
I am using CMSMS 1.9.2 for first time. Before I've used 1.6.x. And now I have problem with new version of MenuManager and with value $node->parent. In older version this contains TRUE is $node is parent of current page (as help says aswell). This value has been true even if menu levels has been limited to number_of_levels=1 and current page has been from 3rd level for example. This I am using when I am displaying main menu of page and want to highlight current tree part however main menu is not for showing submenus (top menu vertical, submenu somewhere else horizontal).
In new version of MenuManager is $node->parent value true only if current page is in displayed menu as well. So, if I don't limit number_of_levels, then parent on first level=true. If I limit number_of_levels=1, same menu in same place is $node->parent=false. In my eyes it is bug, but may be you can find some mistake in my usage. My problem is, that "one level menu" doesn't work with parent value properly as said in help and as it has been in older version. I don't want to load whole menu and hide lower levels by css... It causes that I am repeating submenu twice in HTML without any reason.
Thank you help!
Pavel