More in this section

Forums / Developing with Sitefinity / Selected item in taxonomy widget

Selected item in taxonomy widget

4 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    22 Nov 2012
    Link to this post
    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. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Nov 2012
    Link to this post
    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 :)
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    23 Nov 2012
    Link to this post
    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
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    23 Nov 2012
    Link to this post
    Did you put in a feature request ticket though?...its functionality that *should* be there anyway :)  Id vote on that PITS issue
4 posts, 0 answered