Results 1 to 5 of 5

Thread: [Feature Request] Navigation's classes

  1. #1
    New user
    Join Date
    08-14-09.
    Posts
    28

    Default [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.

  2. #2
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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
    Brian

  3. #3
    User
    Join Date
    07-26-09.
    Posts
    175

    Default 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 :!:

  4. #4
    User Toflar's Avatar
    Join Date
    06-19-09.
    Location
    Lyss, Switzerland
    Posts
    170

    Default Re: [Feature Request] Navigation's classes

    @Tru: both navigation links have the class "active"...
    Regards

    Yanick - Contao core developer @terminal42 gmbh

  5. #5
    User
    Join Date
    07-26-09.
    Posts
    175

    Default Re: [Feature Request] Navigation's classes

    Oh, you are right, my mistake. But shouldn't the "Mannschaften" have class "trail", not "active"?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •