We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17207
    • 23 Posts
    Hi, I hope this hasn’t been asked too much...

    I need to get the "home" (root item) link of my menu to point to the actual id of the start page:
    ’http://localhost/site/index.php?id=1’

    how can i get this done? (my coworker has his own instance running, wich conflicts with mine when he checks my work)

    I tried this call to WF but no luck, i still see ’http://localhost/site’:
    [[Wayfinder? &startId=`0` &level=`2` &parentClass=`hide` &parentRowTpl=`cssplay_parentRow` &outerTpl=`cssplay_outer`
    &innerTpl=`cssplay_inner` &rowTpl=`cssplay_row` &outerClass=`menu` &cssTpl=`cssplay_dropdown`
    &startItemTpl=`rootLink` &displayStart=`TRUE`]]


    where ’rootLink’ is this chunk:

    <li><a href="[[+wf.link]]">[[+wf.linktext]]</a> - [[+wf.description]] [[+wf.wrapper]]</li>
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Try [(site_start)] 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
        • 17207
        • 23 Posts
        Hi, and thanks for the answer... but I’m newbie at this, i don’t quite get what you are saying...

        do you mean using site_star instead of wf.link?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Yes.
            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