wensveen-evident
-
2/7/2011 4:01:10 AM
RE:CMSWebPartZone attributes?
Hi,
I read the documentation, but unfortunately that didn't answer the question. I'll try to clarify.
I want to create a widget zone, plain and simple, so that page editors can add widgets to the page. Usually I go about this by adding a CMSWebPartZone control to the page's layout and then configure it in the Design tab of the page and set 'Widget zone type' to 'Customization by page editor'. This works fine and this is ultimately what I want.
My question is whether or not I can set a property on the CMSWebPartZone control so that I don't have to configure the webpart zone / widget zone on the page's design tab, but can declaratively say that this is to be a widget zone. For instance,
<cms:CMSWebPartZone runat="server" ID="wpzWidgets" ViewMode="Edit" />
And, if this is correct, what the possible values for ViewMode mean: (CMS.PortalEngine.ViewModeEnum: Design, DesignDisabled, Edit, EditDisabled, EditForm, EditNotCurrent, GroupWidgets, LiveSite, Preview, Product, Properties, Unknown, UserWidgets, UserWidgetsDisabled)
Best regards, Matthijs
|