Sitefinity ASP.NET CMS - Content Management System

KB Article

Home >  Support >  Knowledge Base >  KB Article
Filtering content by categories in controls based on Content View - ID#1023
Rating: Not rated
Last Modified: 6/26/2008
Related categories: Workarounds;

Article information

Article relates to

 Sitefinity 3.2 SP2; Hotfix 1616

Created by

 Nikifor Hristov

Last modified by

 Rebecca


All controls based on Content View control (News View, Blog Posts and Events View) provide an option to filter content by categories. Compared to the way this was handled in the corresponding obsolete controls, there is a small change, which involves adding the CategoryID from a database table. This is so because the necessary selectors are not implemented yet.

To enable filtering by category in any of the Content View based controls, follow these steps:

 1. Go to the Advanced Properties tab of the corresponding control.
 2. Set the BehaviorMode (or DisplayMode for Events View) property to Auto.
 3. Take the CategoryID from sf_CmsCategory database table and set it as the value of CategoryID property of the control.

For the Events View control, you can achieve the same by following these steps:
 
1. Go to the Advanced properties tab of the Events View control.
2. Expand section Data.
3. Select the category to display.
4. Type Events in the ProviderName field.


Article Comments

There are no comments yet.
Please Sign In to rate this article or to add it to your favorites.