We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32645
    • 377 Posts
    I have a FAQ page which I want to use a Wayfinder to grab all sub-menus from the FAQ parent page and display on the page

    The idea would be to have a style where it'd display:

    Question (page title)
    Answer (fulltext)

    I'd like to display the content on a page via Wayfinder but I am not sure how to do this.

    // Wayfinder call
    [[Wayfinder? &startId=`17` &level=`0` &ignoreHidden=`1` &rowTpl=`faqRowTpl`]]
    
    // faqRowTpl chunk
    <h3>[[+wf.linktext]]</h3> [[+wf.wrapper]]
    
      • 22840
      • 1,572 Posts
      Although it may be possible to do ( not sure if it is ) you would be better using getResources for that ( http://rtfm.modx.com/display/ADDON/getResources ) or if your using Evo use Ditto
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Definitely better off using getResources (or Ditto) for this.

        I would use MIGx for this, unless you really need a separate page for each question/answer pair.
          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
          • 32645
          • 377 Posts
          I'll give it a go!

          We have installed MIGX but I thought Wayfinder could solve this problem.

          I'll try MIGX, hopefully it will solve the problem more fruitfully
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Wayfinder is designed for menus. It does nested menus, which is very useful, but it's not good for content display. getResources is intended for displaying summaries and content.

            MIGx approaches the problem from a different direction altogether. If you don't want to have a link to an item's full page, you don't really need a resource for each item cluttering up your site_resources table or the Tree. MIGx uses JSON strings to store its content in the template variables tables. If you have a lot of such content, MIGXdb is the same thing, only using a custom database table to store the data.

            The main disadvantage to MIGx is that it's a TV, and thus tied to templates. There is a very promising looking project now in beta called mxFormBuilder that will be very useful for "lists" of things like this. In Evo I used to use Jot a lot.
              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