I would like to create a yearly archives for my blog in this format:
A drop-down menu with all the years, with the current year selected. When a year is selected, it show up a list with all the months that have entries in that year. When another year is selected, the months list change automatically, and so on.
I used Low Yearly Archives with this format:
<select name="year">
{exp:low_yearly_archives channel="blog" start_month="1" status="not closed" sort="desc"}
<option value="{year}">{year}</option>
{/exp:low_yearly_archives}
</select>
{exp:low_yearly_archives channel="blog" start_month="1" status="not closed" sort="desc"}
<div>
{months}
<div>
<a href="{path='blog'}/{year}/{month_num}/" title="{num_entries} entries in {month} {year}">{month_short}</a>
</div>
{/months}
</div>
{/exp:low_yearly_archives}
How can I show only the months related to the year selected?
I thank all those who can help me.