21300 Posts in 5735 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1709 Views |
-
Content regions into JQuery Accordion

11 September 2009 at 11:33am Last edited: 9 March 2010 6:13pm
Hi,
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?
-
Re: Content regions into JQuery Accordion

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
-
Re: Content regions into JQuery Accordion

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:
%control loop%
<h3><a href="http://#">DOM field 1</a></h3>
<div>
<h4>DOM field 2</h4>
DOM field 3 with accordion panel content
</div>
%end control loop% -
Re: Content regions into JQuery Accordion

14 September 2009 at 11:02am
Thank you for the help. I'll check out DataObjectManager.
| 1709 Views | ||
|
Page:
1
|
Go to Top |


