1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Multiple Instances of Categories

Multiple Instances of Categories

2 posts, 0 answered
  1. Travis
    Travis avatar
    86 posts
    Registered:
    15 Oct 2008
    04 Jun 2009
    Link to this post
    Hello,

    I want to have a few different types of categories for my custom module. Specifically, we have Project Type, Our Involvement, Production Type. I want to utilize the exiting Categories framework, but, when I inherit directly from these classes, I have lists of the same categories in both sections (at this point I created Project Type and Our Involvement) Is there a way to have two instances (or more) of this Categories framework and not have the same categories listed in both sections?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    05 Jun 2009
    Link to this post
    Hello Travis,

    You can use different providers in your controls so that you will not have the same categories. Another opetion is overriding the control's InitializeControls method and getting categories based on different parameters instead of all for the provider

    IList cat = this.Manager.GetCategories(); 


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered