-
☆ 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.
Nice snippets, Thanks Susan! have you any demo of the snippet?
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