[Feature Request] Navigation's classes
I have the following problem with the navigation module. Suppose you have the following menu-structure
A
B
+-BA
+-BB
C
+-CA
+-CB
all pages exist, except for B, which is a permanent redirection to BA. When you click on B, both elements B and BA are assigned the classes "active" and "submenu". This reduces the possibilities of styling the submenus.
I think a better class assignment would be -when B, a redirection is clicked- "(trail, submenu)" for B and "(active, submenu)" for BA.
I did a dirty workaround to address this on the file "system/modules/frontend/Module.php", in case someone has the same problem:
substitute line 264:
Code:
$row['isActive'] = true;
with
Code:
$row['isActive'] = ($objPage->id == $objSubpages->id) ? true : false;
It would be nice if this is correctly addressed in some future version.
Re: [Feature Request] Navigation's classes
If that's the case, it does sound like a bug.
If you haven't already, check the DEV site and see if there's a ticket for it. If not, I would add a ticket to ensure it is addressed --
http://dev.contao.org/projects/typolight/issues
Re: [Feature Request] Navigation's classes
Yes, I have encountered a similar problem. When you go to page http://fc-niedergoesgen.ch/1-mannschaft.html the "1. Mannschaft" in the menu should be highlighted, but the active position is "Mannschaften", which actually is a redirection to 1-mannschaft.html.
This should be reported :!:
Re: [Feature Request] Navigation's classes
@Tru: both navigation links have the class "active"... :)
Re: [Feature Request] Navigation's classes
Oh, you are right, my mistake. But shouldn't the "Mannschaften" have class "trail", not "active"?