We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5529
    • 70 Posts
    Quote from: BobRay at Jun 21, 2008, 06:10 PM


    And then put your code in the faq content file exactly like this:

    Q: question
    A: Answer
    Extra: Your anchor code here

    Try it and let me know if you can get it to work.

    Bob



    Is there any trick to getting this to work? I just threw it in so I could have a heading to break up the questions a little bit and can’t seem to get it work. I’ve tried upper case, lower case, having no space after the colon and 1 space after the colon.

    By the way, nice snippet. I use it on almost all my sites.
      • 3749
      • 24,544 Posts
      Sorry, you need version 1.0.6 to make that work. I’ve just attached it to the first post in this thread. If you already have 1.0.6 and it doesn’t work, let me know.

      BTW, it should be Extra: with no space.


        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 27330
        • 884 Posts
        can I use EZfaq somehow more than once on same page?
        or define categories headlines maybe?

        I’m using 1.0.6 and the images get mixed up.
          • 3749
          • 24,544 Posts
          EZfaq doesn’t use placeholders and parses the chunk itself so, in theory, it should work fine when used multiple times on a page, though I haven’t tried it and I’ve never used images in EZfaq.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 27330
            • 884 Posts
            I came across this post again now and was wondering if you tried using EZfaq multiply times on the same page?

            I have a scenerio like this where I have few ’categories’ of FAQs, such as "Specifics/Ordering info/installation".

            I tried creating question page for each category with its related question, then using EZfaq like this:

            <h2>Specifics</h2>
            [[EZfaq? &docID=`105` &showHideAllOption=`false`]]
            
            <h2>Ordering</h2>
            [[EZfaq? &docID=`106` &showHideAllOption=`false`]]
            
            <h2>Installation</h2>
            [[EZfaq? &docID=`107` &showHideAllOption=`false`]]
            


            but the result is that the first call is pharsed but the other categories just output the FAQ without the javascript effect.
            you can see here at what I have:
            http://roomdividersny.com/modx/faq.htm


              • 3749
              • 24,544 Posts
              That’s not what I would have expected to happen, but I knew that multiple calls on the same page wouldn’t work.  wink

              The snippet would need an ID number passed in the snippet call and changes in the code to use that id in the class names.

              There is a workaround that might do what you want if you have the current version of EZfaq. Just put all the content on one page with the section headings after an Extra: tag.

              <h2>Section One</h2>
              Q:question
              A:answer
              
              Q:question
              A:answer
              
              Extra:<h2>Section Two</h2>
              
              Q:question
              A:answer
              
              Q:question
              A:answer
              
              Extra:<h2>Section Three</h2>
              
              Q:question
              A:answer
              
              Q:question
              A:answer
              
              etc.


              Note: Be sure to use Extra: and not EXTRA: or things will go haywire.

              Hope this helps.  smiley
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 27330
                • 884 Posts
                yep that works a treat. thanks a lot bob. appreciate the reply!
                  • 3749
                  • 24,544 Posts
                  I’m glad it worked for you.  smiley

                  BTW, your new FAQ looks really great!  grin
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 20880
                    • 2 Posts
                    Hi, the snippet is great, but why so many errors on validation?
                      • 3749
                      • 24,544 Posts
                      Quote from: nahgo4ka at Sep 13, 2009, 09:06 AM

                      Hi, the snippet is great, but why so many errors on validation?

                      Good question. It used to validate, but I hadn’t checked lately. I’ll have to fix it when I get some time. The errors are mostly trivial.

                      [UPDATE] I’m happy to announce that none of the validation errors were caused by the snippet itself (except for two spurious JS-related errors that are not really errors). So the answer to the question is that on certain issues like trivial validation errors and warnings, I’m really lazy. wink
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting