We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12397
    • 2 Posts
    Rather than try to just describe what I want, a screenshot will explain rather better what I want to do.


    Click for a bigger view


    The first menu (on the left, circled in green) contains all the pages on the first and second levels, except for the home page and the "help" page, but it shows the two children of "help". That bit is fine, I can do this with two calls of Wayfinder.

    The second menu with "tabs" is the difficult bit. Firstly it needs different, shorter names for the same pages. Then it needs some different entries, like "home" and "help" which are hidden on the other menu. While it is the more static and unchanging of the two, I cannot leave it to be part of the template as I need to change the colour of the tabs according to which section the user is in.

    Any suggestions as to how I can do this without writing a new snippet using a couple of TVs? I’m not a total newb, I can do the php but it might be neater to use the better featured snippets already out there!
      • 17883
      • 1,039 Posts
      Hi,

      some thoughts:

      Firstly it needs different, shorter names for the same pages.

      Just take &textOfLinks=`alias` for the tab menu or some other field not needed (or summary or...).

      Then it needs some different entries, like "home" and "help" which are hidden on the other menu.

      Just create a new folder "tab menu" with weblinks to the entries in it. Then use &useWeblinkUrl=`TRUE`, from my understanding this should do what you want:

      description: If weblinks are used in the output, Wayfinder will output the link specified in the weblink instead of the normal MODx link. To use the standard display of weblinks (like any other document) set this to FALSE.

      While it is the more static and unchanging of the two, I cannot leave it to be part of the template as I need to change the colour of the tabs according to which section the user is in.

      I think you can do that with wayfinder and the "active" class of the list items that are active (or their children).



        • 12397
        • 2 Posts
        Thanks, that was the bit I needed! I’ve done it now and it’s working (on my test machine, which is often off) at http://hounddog32.homelinux.com/modx/

        **edit: Yes, I am aware that it is still quite broken in IE. It’s all in the game... **
        **edit2: the only outstanding issue is the "active" class if I do the tab menu (as I have) with a folder of web-links. None of the menu items are actually active, since they are links. Any suggestions on how to get around that?