Tab based dynamic Area creation and display

Permalink
Hi,

I want to create Tabs dynamically and at the same time I want to add one Area(block) to each tab

Please have a look at the below code, I have 2 tabs now, and If the user wants to add one more tab dynamically, I have to associate the Area also accordingly.

please let me know, if anyone worked on the same or if you have the solution

<ul class="tabnav">
    <li>Tab1</li>
    <li>Tab2</li>
</ul>
<div id="tab1">
    <?php $a = new Area('box1'); $a->display($c); ?>
</div>
<div id="tab2">
    <?php $a = new Area('box2'); $a->display($c); ?>
</div>


Thanks,
Bala

 
Mnkras replied on at Permalink Reply
Mnkras
http://www.concrete5.org/documentation/how-tos/developers/creating-an-accordion-page/

basically the same thing
kumarbalap replied on at Permalink Reply
Thx Mnkras, this is really useful, I think this will solve my problem.

The only important thing missing is positioning the Accordians ie moving up and down.

Do you know anywhere in Admin dashboard to position Accordians?, I found only the delete option

If we dont have that option, then I have to try adding my own stuff using display order in 'Atselectoptions' table

Thanks again,
-Bala
Mnkras replied on at Permalink Reply
Mnkras
I am not sure how you would do that.
kumarbalap replied on at Permalink Reply
I found the drag and drop for Accordians in "Attributes" section of "Pages and Themes"