Hello,
I am in the process of setting up standard blog controls for all the sites we develop (using ManagerManager to hide the content field and show a bunch of setting that the user can control to specify the amount of blog summaries per page, how many in the latest posts list, how many tags, and the archive (if it’s visible or not.)
Test page is here:
http://collaborativemedia.ca/blog
I want the archive to use jQuery and it currently is. However, when a user clicks a month and goes to the page listing those months I want the months that were expanded in the accordion to remain expanded. To do that, I need each inner template to have a unique class name. For now my inner template is in a chunk:
&tplYearInner=`archiveyearinnertpl`
Where archiveyearinnertpl contains:
<ul class="reflect_months">[+wrapper+]</ul>
I need the class="reflect_months" to increment automatically so the first one is:
Followed by:
And so on. That way, the jQuery script can function to maintain display of the expanded items and expanding and collapsing can continue once a user has clicked through to a specific month.
I haven’t been able to figure out how to generate the class name dynamically and if it’s even possible for a chunk to parse a snippet.
Any ideas?