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

    I'm new to MODX, love the potential I can see in it, but I have a problem with the rebuild of my site that I'm trying to do using it.

    My site nav works fine using the Wayfinder code, but I want to have the page description (or long title) to display under each nav title (rather like the main navigation on this site - see example.jpg attachment), but I can't seem to find out how to add this. I've had a look at the wayfinder info in the manual, but there were no examples using this.

    Can anyone please advise on how I can do this?

    Thanks!
      • 22427
      • 793 Posts
      You need to use a modified &rowTpl.
      Write a chunk named "myrow" with this code (for example):
      <li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.description]][[+wf.wrapper]]</li>

      In the Wayfinder call you then have to put
      [[!Wayfinder? .... &rowTpl=`myrow` .... ]]