We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Snippet with accompanying js file to create a definition list consisting of dt pagetitle/dd content, sorted by menuindex. The list is generated from the documents in the folder specified in the snippet argument.

    The accompanying .js file goes in the /assets/js folder. It unobtrusively hides the content blocks on page load, then the onclick event for the dt headers shows/hides the dd content under that header. The page will be fully shown to anyone without javascript. Style the dt and dd elements as desired.

    This is suitable for a FAQ or any other document with a series of header/content items too long to fit comfortably on one page.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 2762
      • 1,198 Posts
      Nice snippets, Thanks Susan! have you any demo of the snippet?
        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

        MODx IT  www.modx.it
        -----------------------------------------------------

        bubuna.com - Web & Multimedia Design
        • 4273
        • 356 Posts

        Is this suppose to create actual links for doc titles ? I only see it as plain text question and answer

        i have the question in both the page title and menu title
          SMF Bookmark Mod - check it out
          http://mods.simplemachines.org/index.php?mod=350