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
-
☆ A M B ☆
- 24,524 Posts
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.
-
☆ A M B ☆
- 24,524 Posts
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.
-
☆ A M B ☆
- 24,524 Posts
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.