The possible solution is to loop through the slot’s contents twice for each area calling a different template for each area. Is there an alternative method?
Well if you didn’t want to use velocity to loop through the items twice, you could use jquery to create the first list (ul, lis) based on what you have in the divs.
My suggestion however, would be implement this by making my own slot macro (via the raw slot macro) and calling the slot contents twice…of course if you want active assembly to work well, you might have to fool around with it some…
Thank you for the response. I’m going to try to avoid excessive overhead on the front end; even though, I’m already including jQuery UI. I’m going to try the macro path and see the type of results I get. Still accepting alternatives.
Another alternative is to create a new JQuery UI widget based off the Tabs widget such that the tab portion is created from some special div inside the body div.
So the html could look something like:
<div><div class="ui-mytabs-tabcontent">My Tab Name 1</div>Slot Item 1</div>
<div><div class="ui-mytabs-tabcontent">My Tab Name 2</div>Slot Item 2</div>
<div><div class="ui-mytabs-tabcontent">My Tab Name 3</div>Slot Item 3</div>
@Rushing: Thank you for the suggestion. If I do not get a usable back end solution then I will probably proceed with a front end solution. It may be inevitable.
@MPMatonis: Thank you for the code reference. I’m going to use what you’ve referred and I’ll post back the results for future reference.