This is a re-posting of a thread that I haven’t managed to resolve as yet:
http://ellislab.com/forums/viewthread/229641/
I’m struggling to get Expression Engine to spit out the code to make an accordion function properly.
Shane Eckert was offering great assistance and his last suggestion (found below) can be found here:
http://www.marymarygallery.co.uk/dev2012/index.php/programme/archive
<div id="accordion">
<dl class="accordion" id="slider">
{exp:channel:entries channel="programme" orderby="date" sort="desc"}
{date_heading display="yearly"}
<dt class="yearunderline">{entry_date format="%Y"}</dt>
{/date_heading}
{if count == 1}<dd>{/if}
<a href="http://path">{title}</a>
{if count == total_results}</dd>{/if}
{/exp:channel:entries}
</div>This code only spits out one set of < dd> </ dd> tags.
I need the < dd> </ dd> tag to wrap around each set of link for a given year.
ie.
Year Title
DD Wrap
set of links here
Close DD Wrap
Next Year Title
DD Wrap
set of links here
Close DD Wrap
etc.