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

    Ok I have been asked to store our FAQ page in the modx database using MIGX. this is the structure of the faq page:

    FAQ page has 2 topics, Top Questions and Loan Application questions. within each topic there are sub topics, so for example in the topic Top questions are the following sub questions:

    Bridging Loan Basics, Loan Repayment Questions, Loan Applications questions.

    within each sub topic there are Questions and Answers, so for example Question under 'bridging loan basics' could be:

    What is a Bridging Loan
    How is the interest Calculated
    etc....

    Anyway in a nutshell, I need to be able to store in a migx, each Question and Answer, but also each Q and A needs to be able to assign to a topic and a sub topic, then I somehow need to order by topic and sub topic to retreive both question and answer.

    does anybody have an idea on how this can be done?

    Cheers
    • You can do this in several ways.

      Personally, I would use one MIGX TV (probably MIGXdb) and have a tag field, with checkboxes for the various types, so that when entering the Question and the Answer you could also select one or more tags.

      Various output displays would be generated by filtering on the tags.

      You can actually have the TV grid field with the tagging be live, so that you can change the tags for an item from the grid.
        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
      • Oh, and I believe you can also generate a field like the tags field from a chunk, so if you want to add/remove/modify a topic tag or a subtopic tag you only need to edit that chunk.
          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
          • 47401
          • 295 Posts
          Quote from: sottwell at Sep 24, 2015, 04:06 PM
          You can do this in several ways.

          Personally, I would use one MIGX TV (probably MIGXdb) and have a tag field, with checkboxes for the various types, so that when entering the Question and the Answer you could also select one or more tags.

          Various output displays would be generated by filtering on the tags.

          You can actually have the TV grid field with the tagging be live, so that you can change the tags for an item from the grid.


          Hi
          Thanks for your reply, what you do mean by a TV Grid Field?

          Matt
          • A MIGX TV show a grid on the TV editing tab. Each item has a row in the grid, with whatever fields you specify to display in the grid (which is why it's call MIG for multi-grid).

            Ordinarily you right-click on a row in the grid to edit that item. But you can have the individual fields in the grid editable - yes/no toggles, radio buttons, even text editing in the grid.
              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