Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • steweir 34 posts 54 karma points
    Oct 15, 2010 @ 16:34
    steweir
    0

    Really simple FAQ

    Im looking to build a simple faq section for a site im working on as i cant get the runway module to work, all i need is a single page displaying all the questions with links to the answers via anchor points further down the page.

    I need the section to be able to have more questions added when needed and im not sure how i would do this, as its not adding a page just a new bit of content to the page, can anyone give me a guideline on how to do this would be much appreciated. 

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 17, 2010 @ 10:40
    Dirk De Grave
    0

    If you don't want to add new pages or documents on your content structure just for faq, have a look at this project which may be of interest to you. Specify question as a text string and answer as a rich text editor and use some xslt to render the faq.

    I'm not sure how the actual repeatable custom content is stored as xml, but that can be checked by opening umbraco.config from the /App_Data folder. And just write some xslt to list all questions and answers on the frontend.

     

    Let us know how it goes on, and if it doesn't work out easily, just let us know what you did so far, what xslt you've got. Don't forget to tell us about your umbraco version as well, it may be important...

     

    Cheers,

    /Dirk

  • Paul Blair 466 posts 731 karma points
    Oct 17, 2010 @ 11:16
    Paul Blair
    1

    Or if you want a real simple solution (and especially if the content won't change too much or the editor is not a complete novice) then just use a rich text box. Create an extra style called FAQAnswer.

    Type in your questions as normal paragraphs and then select the FAQAnswer style for the answer text. And use CSS to format the different styles.

    This is only aprropriate in the most simpliest of setups

  • Dan 1288 posts 3921 karma points c-trib
    Oct 17, 2010 @ 11:50
    Dan
    0

    To add to Paul's suggestion - you could even use some progressive enhancement there with jquery (/whatever) to show/hide the Q & As for those.  Very simple to do, and very effective.

Please Sign in or register to post replies

Write your reply to:

Draft