We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27117
    • 28 Posts
    Hi

    I have managed to create a wayfinder menu (all from containers) and it works very well. Now one of my links needs to point to an anchor.

    The old menu looks like this:

    home/
    show/
    program/
    about/
    contact/

    The new menu should look like this:

    home/
    show/
    program/#anchorname
    about/
    contact/


    I tried to add the anchor tag in the "ressource-alias" field of mdx but it doesn’t accept the “#“.

    Any help is appreciated!

      Modx 2.1.3, PHP 5.2
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You might try adding the anchor in the "link attributes" field, then add [[+wf.attributes]] in the appropriate place in your tpl.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 27117
        • 28 Posts
        Brilliant Idea Susan and it works like a charm!

        Thank you very much.
          Modx 2.1.3, PHP 5.2