21300 Posts in 5735 Topics by 2603 members
|Go to End|
11 September 2009 at 11:33am Last edited: 9 March 2010 6:13pm
I am using JQuery Accordion to display some content on my site. Currently I am just placing the required code in the HTML tab of the WYSIWYG editor and it is working ok. But, I would like to create a content region for each section of the accordion so that I don't need to put code into the editor. I'd prefer not to create a new page for each piece of content and there is no fixed number of sections in the Accordion.
You can see it on my site: http://www.travel-insurance-reviews.com/1cover-travel-insurance/
Can anyone point me in the right direction?
11 September 2009 at 5:13pm
Well you could always use the DataObjectManager Module. It'll let you create complex dataobjects that aren't pages
11 September 2009 at 8:44pm
The DataObjectManager seems like a good idea for this purpose.
You would create fields for each of the areas in your accordions and then just use a %control% to loop through the DOM and display each accordion menu.
Example using your code structure:
<h3><a href="http://#">DOM field 1</a></h3>
<h4>DOM field 2</h4>
DOM field 3 with accordion panel content
%end control loop%
14 September 2009 at 11:02am
Thank you for the help. I'll check out DataObjectManager.
|Go to Top|