We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    I don’t think you should put any restriction on the question size at all.
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 14784
      • 16 Posts
      After this thrashing... wink Questions are now only limited by the size of TEXT in your database. Hopefully ~64kb is enough room for a question. If not... well... tough cookies. grin

      Seriously though, thank you for the feed back. Let me know if you have any other issues or suggestions.
        • 17667
        • 108 Posts
        Great Add-on! For anyone interested in starting off with a bulleted list of questions at the top of the page linking to each Q/A pair below here is how I was able to do it.

        Create a chunk "faq_list_tpl":
        <li><a href="[[~[[*id]]]]#faq_[[+id]]">[[+question]]</a></li>


        Create a chunk "faq_tpl":
        <h3 id="faq_[[+id]]" class="faq_question">[[+question]]</h3>
        <div class="faq_answer">[[+answer]]</div>


        Then use this code in the resource document where you want the FAQ:
        <ul>
        [[faqMan? &set=`1` &tpl=`faq_list_tpl`]]
        </ul>
        
        [[faqMan? &set=`1` &tpl=`faq_tpl`]]
          • 28121
          • 107 Posts
          Hi Josh.

          Looks great. I just tried an example with Luke’s code and it works fine.

          Are there any plans to have the answers show/hide upon click on the FAQ?
          I can probably do this myself via jQuery but was just curious.
          Thanks
          P
            • 21635
            • 81 Posts
            i implemented these faqs with faqman...
            http://www.lehmannaudio.com/service/faq.html

            if you’re interested i can paste the source...
              • 35573
              • 1 Posts
              Quote from: nklsf at May 25, 2011, 09:56 AM

              i implemented these faqs with faqman...
              http://www.lehmannaudio.com/service/faq.html

              if you’re interested i can paste the source...

              Yes please.
                • 37286
                • 160 Posts
                Something that would be nice on this mod would be a display order. A number field when creating each question that would allow you to insert a FAQ at the top of the list, or a move up, move down button in the faq manager.
                  • 23510
                  • 168 Posts
                  Is this 2.0 beta1? On the extras page it says the version is 1.04rc2.

                  Thanks.
                    • 37286
                    • 160 Posts
                    Looks like I have 1.04rc2. Don't see a version 2.0.
                      • 14784
                      • 16 Posts
                      Wow, sorry, I always forget to check this forum...

                      @sparrow I really didn't want to force anyone to use anything, so the front-end code was always planned to be pretty barebones HTML so it could be re-used anywhere and any special effects you wanted to add would need to be on your own

                      @insomnix The display order is actually customizable, by default it will display in the order shown in the manager. To reorder them, you should be able to drag & drop them to move them around.

                      @pixelstation Version 1.0.6pl is the correct current version... the version 2 was a typo in the description... but maybe someday smiley