Products and Services
Graffiti CMS
Learn more about our simple content publishing platform.
Harvest Reporting Server
Get business intelligence tools for measuring online behavior.
Professional Services
Consulting, creative, and Web services from the people who know Community Server best.
Solutions
Telligent
Learn more about our team at Telligent.com.
 

Filtering Widgets for a Dynamic Configuration Property

Community Server 2008 supports filtering the widget drop-down list by application type. 

 

To add an application-type-based filter to a widget dynamic configuration property, add the applicationTypes attribute to the <property /> in the theme.config file defining the widget column. The value of this attribute is a comma-separated list of the application types for which associated widgets should be listed.

For example,

<property
   id="myWidgetColumn"
   text="Widgets"
   dataType="Custom"
   controlType="CommunityServer.Controls.ContentFragmentsCustomControl, CommunityServer.Controls"
   applicationTypes="Forum,Weblog"
   />

will allow only blog- and forum-related widgets to be selected for this widget list/column.

Note that when filtering widgets by application type, widgets that do not identify an associated application type will always be included in the list of available widgets. This includes the Generic Content, Google Gadget, and other application-generic widgets.