Sign In

Tips and Tricks: Default Web Part and Widget properties

This tip and trick is something I find very useful when working with web parts and widgets. You are probably aware of the dialogs that you get when adding or modifying web parts and widgets. These dialogs consist out of default properties which apply to all web parts and widgets and some custom properties which can be set per web part and widget.
 

Kentico adds the default properties via a couple xml files which can be found at the following locations:


~\CMSModules\PortalEngine\UI\WebParts\Properties\WebPart_PropertiesAfter.xml
~\CMSModules\PortalEngine\UI\WebParts\Properties\WebPart_PropertiesBefore.xml
~\CMSModules\Widgets\Controls\Widget_Edit_Properties.xml


With these xml files you can easily add, modify or remove the default properties. This is where you can find properties like the title of the web part, the hide on sub pages checkbox, display to roles selector and the html envelope with the content before and after fields.

Posted: 11-08-2010 | 2 comments | Filed under: Web Parts, Widgets, Tips and Tricks

Comments
Jeroen
Hi Robert, thank you for your comment. I was actually thinking the same thing when writing this post! We have however found this one usefull when adding the default properties to a widget. For example we used it to display the id of the widget in the properties (to determine the target control id to use with datasource/repeater widgets). Also the hide on subpages and display to roles are stuff we like to use in widgets as well :)
8/12/2010 10:55:40 PM
Robert Glynn
Interesting. I'm not sure when I would want to change one of these settings globally, but it's good to know how I could.
8/12/2010 6:57:56 PM
Leave comment



 Security code

About me

Jeroen Furst 
  • Facebook
  • LinkedIn
  • RSS
  • Twitter

Kentico DevNet

IBL-Software

Sponsored links

Interview with Kentico

You have an old version of Adobe's Flash Player. Get the latest Flash player.
Kentico blogs and websites
Martin Hejtmanek - Kentico CTO
Thomas Robbins - Kentico product evangelist
Petr Vozak - Kentico team leader
Brian McKeiver - BizStream
Johnny Bubriski - Wakefly, Inc.
Bryan Soltis - Bit-Wizards
Kentico Developer - Reed Business Information
Kentico Solutions - Data, Inc.

My trees

Latest Kentico Knowledge Base Articles

Kentico Developer Posters

Kentico CMS 5.5 Macro Reference