23370 Posts in 18160 Topics by 2864 members
|Go to End|
22 April 2009 at 10:13am Last edited: 22 April 2009 10:14am
We would like to use an accordion function in a SilverStripe website similar to http://www.lifeway.ac.nz/3d-animation/, but are not sure how this would be set up to allow editing in the CMS. Has this been done before or are there any ideas?
22 April 2009 at 8:44pm Last edited: 22 April 2009 8:48pm
<% if Children %>
<% control Children %>
<% end_control %>
<% end_if %>
Edit: if there are only small amounts of content in the accordion tabs, you could also use something like a has_many relation or even enter the required code inside the editor. There are quite a lot of possible solutions.. it's all a matter of taste.
On a second thought, the has_many relation is probably even better than my first solution, since it won't actually require a page for each accordion pane (therefore not polluting the url names)
23 April 2009 at 4:26pm
Thank you, brilliant
|Go to Top|