I PM’d Soreng (the creator of the other site) but didn’t get a response. I needed something right away, so I went ahead on creating the FAQ snippet based on code he used from
DynamicDrive.com.
It isn’t quite ready for publication (I still need to figure out where to put the support files and create installation/usage instructions), but it has some neat parameter options, is (I hope) quite styleable, and has a language file for the error messages. You can see the results here:
http://bobsguides.com/modx-faq.html
The content of the FAQ is in a standard MODx document (published or unpublished) in the form:
Q: blah blah blah
A: blah blah blah
Q: blah blah blah
A: blah blah blah
etc.
Q:END-FAQ
Stuff can go here that you’re working on but isn’t ready to be seen.
I still need some advice, though, on the location of the support files. The snippet needs a large javascript file and a small .css for styling.
The logical place to refer to them is in the header of the template. I think the .js might need to go there. That would mean users would have to create another template for the FAQ; otherwise, the big .js file would be included needlessly on every page. I know people hate to create extra templates, though, but I’m not sure if there’s a way around it.
The .css
could just be tacked onto the end of the user’s current .css file but I don’t know if that’s a good solution.
I’m not sure if the .js could be included by the snippet rather than going in the template because I’m not sure it would work outside of the header (the DynamicDrive docs say to put it there).
Any advice/opinions appreciated.
Bob