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

    Hello everyone.

    I want to display more than one value in my menu.

    -I made a copy of Wayfinder snippet and changed its name to testmenu.
    -In new snippet I changed this: ’textOfLinks’ => isset($textOfLinks) ? $textOfLinks : ’published’,
    -Then I called snippet from my template with: [[testmenu? &startId=`170`]]

    This works well.
    Now I want to show published, menutitle and description in menu. How to do that?

    Sorry for my bad english.

      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can do all of that using the rowTpl and the Wayfinder field placeholders, such as [+wf.menutitle+] and [+wf.description+]. As far as the "published" field, unless you’re satisfied with 0 or 1, you would need to use phx or some other way of modifying the actual value of the ’published’ field.
        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