We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13388
    • 33 Posts
    Hello,

    I’m stuck in a bit of a jam. I currently have a side menu setup where it pulls 2 levels of documents and sets it up nicely into a list style menu. This works great for modx documents; however, for the bottom tiered links in the menu, they need to be anchor tags which point to various locations on that page. Note, the main resource it pulls from is not displayed.

    Example:

    Fruit (main resource landing page link, not shown in menu)
    -Apples (resource link which contains all of the anchor tags)
    --Granny Smith (anchor tag)
    --Fuji (anchor tag)
    --Red (anchor tag)

    Here’s my current Wayfinder setup and chunks:

    Sub Menu
    [[!Wayfinder? &startId=`[[UltimateParent]]` &level=`3` &displayStart=`true` &startItemTpl=`subMenuStart` &outerTpl=`subMenuOuter`]]


    subMenuOuter
    <ul>[[+wf.wrapper]]</ul>


    subMenuStart
    [[+wf.wrapper]]


    I setup the Fuji, Red, Granny Smith resources as weblinks and simply tried putting #grannySmith in its Weblink field, but the Wayfinder system generates the URL for the main part of the site (e.g. www.fruit.com/#grannySmith) instead of generating it with the current page id as well (e.g. www.fruit.com/index.php?id=1#grannySmith).

    Any and all help would greatly be appreciated. I’m using Revolution, by the way.

    Thanks!




      • 3749
      • 24,544 Posts
      Try using [[~12]]#grannySmith, where 12 is the ID of the document you want a link to.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting