We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33416
    • 3 Posts
    Hello everybody,
    I just installed MODx, and I have a very basic question to ask. How would I include a snippet (say, eform or ajaxsearch) on 1 page only? Is it a template change or do I include the snippet code directly in the WYSIWYG editor? I am not sure how to do this. My goal is to have eform on the Contact page only. How would this work? Any help would be greatly appreciated.

    Thanks.
      • 3749
      • 24,544 Posts
      If you put the snippet call in the content section of that document, that’s the only page it will appear on. You can do it with the WYSIWYG editor, or choose to edit in raw HTML mode and put it in that way.

      Bob
        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
        • 33416
        • 3 Posts
        Thank you for replying. So you are saying that I just type the snippet call directly into the WYSIWYG editor and it will be on that page only?

        Thanks.
          • 4310
          • 2,310 Posts
          Yes, that’s what BobRay is saying, put the call in the content area of the single page you want it on.
          eg. your contact page
            • 33416
            • 3 Posts
            Thank you both for your help. I just implemented my contact form, and it works out nicely. Thanks again.