MenuManager: active state of parent node(s) does not show

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
elektric
New Member
New Member
Posts: 3
Joined: Wed Feb 02, 2011 11:33 pm

MenuManager: active state of parent node(s) does not show

Post by elektric »

Hi,

I've been using CMSMS for years, truely the best CMS: thx dudes, but...

CMSMS version: 1.9.2

Related to: MenuManager

Short problem description: "active" state of the parent menu-items is not visible as some class (class="menuactive" or something like that) if you use a menu that shows only a "number_of_levels" and if you are at a level deeper than the shown number_of_levels;

Long problem description:
Let's say this is my menu structure:
  • home
  • about
  • products
    • producttype1
      • product1_1
      • product1_2
      • product1_3
    • producttype2
      • product2_1
    • producttype3
      • product3_1
  • contact
Let's make a menu in a products-template (used for the products-page and every producttype- & product-page) like this:

Code: Select all

{menu template="some-standard-tpl-lets-say-simple_navigation.tpl" start_level="2" number_of_levels="1"}
showing me a list of the producttypes.
Then when I am at a producttype-page, the "active"-state is mentioned in the current menu-item
BUT, when I am at a product-page (a child of a producttype-page),
the parent-producttype-page is not marked as "active" or alike, so I could highlight it in the menu...

Same thing if we would make a custom global tabbed sitemenu with the items
home - about - products - contact
If I would select the products-page, then the products-menuitem is selected/active (which we can "style" to look selected)
but if I go deeper, onto a producttype- or product-page, then the products-menuitem is not selected any more...

A possible solution:
The only solution I found so far is printing ALL the childnodes, and hiding them using CSS, but this is mega-overkill...
as I need to do this for every separete menu...
(Or using javascript to move parts of a sitemap menu of check a "selected" state of an item, hmmmm)

Since?
This problem is new I guess, because I never had this problem with older versions...
(eg CMSMS v1.5.2, with MenuManager v1.5.3)

Reproduce it
I noticed that ofcourse the CMSMS "demo" shows this "bug": Thanks in advance for helping me with some .tpl-code that could solve this
or some bugfix in some other MenuManager related file.

--
Edit: apparently this bug was already reported and will be fixed in CMSMS v1.9.3.
Last edited by elektric on Fri Feb 04, 2011 1:26 am, edited 1 time in total.
tbunt
Forum Members
Forum Members
Posts: 21
Joined: Tue Aug 24, 2010 9:13 am

Re: MenuManager: active state of parent node(s) does not sho

Post by tbunt »

I am having the same issue. This bug does not exist in CMS Made Simple 1.7.1 so I am assuming it was introduced quite recently.

I believe the following code is what triggeres the addition of the class for top level items:
{elseif $node->parent == true && $node->depth == 1 and $node->type != 'sectionheader' and $node->type != 'separator'}

It is still in the menu templates for 1.9.2 so it must be a bug that it no longer works.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: MenuManager: active state of parent node(s) does not sho

Post by Dr.CSS »

A quick search of the forum would have told you this is a known bug and is fixed when 1.9.3 comes out...
tbunt
Forum Members
Forum Members
Posts: 21
Joined: Tue Aug 24, 2010 9:13 am

Re: MenuManager: active state of parent node(s) does not sho

Post by tbunt »

With respect, I did a search of the forum last night and then again this morning. This was the only post I managed to find.

Maybe I need to brush up on my search skills :)
elektric
New Member
New Member
Posts: 3
Joined: Wed Feb 02, 2011 11:33 pm

Re: MenuManager: active state of parent node(s) does not sho

Post by elektric »

ok Dr.CSS, thus help is on the way...

thx tbunt:
indeed I searched the board, and the net thoroughly before I registered & "spammed" this board;
probably the post you found about the problem just has a better bug-description with more relevant keywords ;)
elektric
New Member
New Member
Posts: 3
Joined: Wed Feb 02, 2011 11:33 pm

Re: MenuManager: active state of parent node(s) does not sho

Post by elektric »

CMSMS v1.9.3 is released, and indeed: problem solved
Post Reply

Return to “CMSMS Core”