Selected item in taxonomy widget
Anyone knows a (simple) solution to get the selecteditem inside a Taxonomy widget? I use the widget to filter items from a custom module. When you select an item, it filters correctly but you can't see which item was filtered on (only in the url).
How would I modify the control so I can add a 'selectedItem' css class or something?
Anyone done this already?
Thanks,
Daniel
2 options, but put in a ticket to create a PITS b/c I want this too :)
1 - jQuery: ...don't like this as it adds processing on load (but easiest\fastest to get done)
2 - Inherit from the TaxonomyControl and override the TaxaRepeater_ItemDataBound method (check it out in JustDecompile)....should be super easy to get the Url and compare it to the title.NavigateUrl and just append a class
...but really this should be core in the control, so do the PITS and help us out :)
Hey Steve,
Thanks for the follow up.
I ended up with inheriting from the TaxonomyControl. Works okay and it is doing the job.
Regards,
Daniel
Did you put in a feature request ticket though?...its functionality that *should* be there anyway :) Id vote on that PITS issue