Try Now
More in this section

Forums / Developing with Sitefinity / Sub Categories Widget

Sub Categories Widget

3 posts, 0 answered
  1. Colin
    Colin avatar
    1 posts
    25 Nov 2013
    26 Nov 2014
    Link to this post


    I am trying to create a custom widget / modify the Categories widget so that it only show children under a selected parent category. I have stumbled across this blog post which sounds like it will do exactly what I want.


    I have created the class in my project but I am struggling to see how I deploy it in Sitefinity. Do I need to create a Custom widget and link to this class or do I need to modify something in the admin section? 

    Any help would be greatly appreciated.

  2. Steve
    Steve avatar
    3037 posts
    03 Dec 2008
    26 Nov 2014 in reply to Colin
    Link to this post

    If it inherits from TaxonomyControl then just open your backend advacned settings toolbox node, look for the existing tag\category toolbox items.  Just copy down all the fields there, and then make a new node (in the UI), paste in all the fields EXCEPT for the type, the new type will be the "namespace.class, assembly" of your version.

     No recycle nessesary, reload the page editor and it should be there

    (This all assumes the "code" is live...)

  3. Darcy
    Darcy avatar
    10 posts
    28 Feb 2012
    05 Aug 2015 in reply to Colin
    Link to this post
    An old post but in case anyone is wondering. the inheritance seems to work a bit differently now and didn't work for me like it did for Steve. I didn't need to enter the Type as the new assembly but instead substituted the Control CLR (very first line of the form).

    If you set the build action as "compile" for your class you need to use the namespace used in your class. Based on that article it would be: SitefinityWebApp.TemplateMapping.CustomTaxonomyControl, SitefinityWebApp -- Remember that even though it seems verbose to always include the assembly after the CLR.

    See attached screenshot.
3 posts, 0 answered