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

Forums / Developing with Sitefinity / Categories and Subcategories

Categories and Subcategories

2 posts, 0 answered
  1. Stephen
    Stephen avatar
    5 posts
    Registered:
    23 Jun 2010
    28 Oct 2010
    Link to this post
    I am customizing a News Item. In the NewsItemNew.ascx file I would like to have multiple Category drop down lists.  In each one, I would like to have only the subcategories show up, instead of all.  For example, if I had the following categories in the Category library

    Author
    Bob Smith
    John Smith
    Type
    Thriller
    Comedy

    How do I get the Category drop down to only show the subcategories of one of the main categories.  So for example, only show the Authors?

    Thank-you
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Oct 2010
    Link to this post
    Hi Stephen,

    You need to crate a new metakey ( User Manual , page 214 - Adding Custom Fields) for each category you want to add. Then you need to use control that implements ITextControl interface and bind the categories to it. You can specify the level from which the binding will start by using GetCategoriesTree method of ContentManager class. You could also take a look at



    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered