Selected item in taxonomy widget

Posted by Community Admin on 04-Aug-2018 12:12

Selected item in taxonomy widget

All Replies

Posted by Community Admin on 22-Nov-2012 00:00

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

Posted by Community Admin on 22-Nov-2012 00:00

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 :)

Posted by Community Admin on 23-Nov-2012 00:00

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

Posted by Community Admin on 23-Nov-2012 00:00

Did you put in a feature request ticket though?...its functionality that *should* be there anyway :)  Id vote on that PITS issue

This thread is closed