Getting the actual selected Archives

Hello

After selecting an entry in the archives list e.g. “2013 December”, i would like to find out, which one was selected to apply some further formatting. I didn’t really find something helpful in the API.

Many thanks

Martin

Hi Martin–

I think there could be some improvement in this area, but for the time being have you tried a combo of cb.getYearFilter() and cb.getMonthFilter()

I believe these should give you the active filters, or else 0 if none is active.

Out of curiosity, what’s your specific use case?

Hello Joel

My screenshot might help answer this. If a category was selected, the selected category (Kategorie in german) will be highlighted.
I like to have the same, if an archive item was selected. Therefore i need to know, which item was selected.

Thanks for the help, i will try it withe these two functions.

Cheers

Martin

Great, works already, thumbs up!

Awesome, glad to hear it!