Scot's FAQ Manager / Using Variables to Load FAQs
New in version 1.03 we get to use variables to load FAQs.
The main reason to use this would be to load FAQs for products and categories, however you could use this functionality for all sorts of creative things.
Loading a of FAQs set via a global variable is simple. Let's say you want to load a FAQ based on the category the shopper is in. Do it like this:
<mvt:item name="MvFAQ" param="category g.category_code"/> <mvt:foreach iterator="faq" array="MvFAQ:faqs"> faq name: &mvt:faq:name; <br> </mvt:foreach>
1. Add the MvFAQ page item to the page you're working on. In this example it would be the CTGY page (open up the page for editing, click on the items tab, find the MvFAQ item, click the checkbox, and update.)
2. In order for this to work, there must be a FAQ category with the same code as the variable. If you're using g.category_code as the variable and your shopper goes to the dogs category of your store, you will need to have a FAQ category called dogs for this to work. Don't worry if you are missing a category; MvFAQ will unobtrusively do absolutely nothing if it doesn't find what it's looking for.
You can access all the FAQ store morph data for a custom layout, or you can copy the FAQ code from the MvFAQ page code that was created when you installed the module (found in the store pages section.)