We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45958
    • 7 Posts
    I have some code that outputs a header and list of links:

    <div class="row" id="items">
        <div class="large-12 columns panel">    
           <h1>[[#[[*id]].menutitle]]</h1>       
               [[Wayfinder? &startId=`[[*id]]` &ignoreHidden=`1` &level=`2` &outerClass=`small-block-grid-4` &levelClass=`level`]]
        </div>    
    </div>
    


    As you can see demonstrated here: http://c0521.paas2.ams.modxcloud.com/vrije-tijd/ .

    I would like to be able to have another template that outputs a title + description.
    Something like this:
    <div class="row" id="items">
        <div class="large-12 columns panel">    
           <h1>Opening hours</h1>       
           <p><a href="/hours">Find out our opening hours</a></p>
        </div>    
    </div>
    


    Or like this ('ul' instead of 'p'):
    <div class="row" id="items">
        <div class="large-12 columns panel">    
           <h1>Opening hours</h1>       
           <ul>
             <li><a href="/hours">Find out our opening hours</a></li>
           </ul>
        </div>    
    </div>


    I have a suspicion the answer to my question is pretty easy.
    But I played around with this for a while now and can't seem to get it to work.
      • 47401
      • 295 Posts
      use &outerTpl and innerTpl. in the chunk you can specify title and description by [[+wf.title]] and [[+wf.description]]

      documentation can be found here

      https://rtfm.modx.com/extras/revo/wayfinder

        • 45958
        • 7 Posts
        Quote from: comp_nerd26 at Sep 25, 2015, 10:20 AM
        use &outerTpl and innerTpl. in the chunk you can specify title and description by [[+wf.title]] and [[+wf.description]]

        documentation can be found here

        https://rtfm.modx.com/extras/revo/wayfinder


        Thanks! Going to try this now.

        Yeah, I read several documentation webpages and experimented with the different chunks and calls a bit. Nothing got me what I wanted however.
        Even with all the documentation there is, I'm afraid I still don't understand well enough how Wayfinder excactly builds its menus.

        Well, I guess practice, practice, practice...
          • 47401
          • 295 Posts
          yes it certainly is a mine field sad
          • This is a bit old, but it's still useful. Just keep in mind that Revo uses different tags - [[+placeholder]] instead of [+placeholder+] for example. http://sottwell.com/links/wayfinder/wayfinder-book.pdf
              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
              • 45958
              • 7 Posts
              Quote from: sottwell at Sep 28, 2015, 05:30 PM
              This is a bit old, but it's still useful. Just keep in mind that Revo uses different tags - [[+placeholder]] instead of [+placeholder+] for example. http://sottwell.com/links/wayfinder/wayfinder-book.pdf

              Yes, I noticed!
              I've been reading the PDF, although I couldn't solve this problem yet (although I did solve a couple of other problems thanks to the pdf guide).