hutnyk.roman-gmail
-
4/18/2012 6:38:42 AM
RE:Modify web part common properties
Helena,
first of all i do not have full source code, so that's why i'm going to override CMSAbstractWebPart class and inherit needed web parts from my custom class.
As you know i've already added custom field for web part properties dialog and that custom field will be available only for web parts inherited from my custom class CMSAbstractWebPartExtended.
The idea is to manage web part visibility similar to "Show to roles", but due to project specific there are additional conditions.
I've already overridden Visible property inside of CMSAbstractWebPartExtended and it works fine.
The next stem i need to implement is to add something similar for CMS Document (page, articte, news...): it means that, for example, i need to show/hide page in the navigation based on additional conditions. Any thoughts?
Thanks for your support.
|