PortalHelper Class |
Namespace: CMS.PortalEngine.Web.UI
public static class PortalHelper
The PortalHelper type exposes the following members.
Name | Description | |
---|---|---|
DefaultPageLayoutIconClass |
Gets the default web part font icon CSS class.
| |
DefaultPageTemplateIconClass |
Gets the default web part font icon CSS class.
| |
DefaultWebPartIconClass |
Gets the default web part font icon CSS class.
| |
DefaultWidgetIconClass |
Gets the default widget font icon CSS class.
| |
DisplayContentInDesignMode |
If true, web part content should be displayed in design mode.
| |
DisplayContentInUIElementDesignMode |
If true, web part content should be displayed in UI element design mode.
| |
OnSiteEditRelativeURL |
Gets or sets the on-site edit relative URL. Access to this URL switch user to the editing mode if is authorized to this mode.
| |
RenderWebPartIDCssClass |
If true, the web part ID CSS class is rendered for web parts.
| |
SafeMode |
If true, safe mode is required (only for new design mode).
| |
ShowOrphanedLayoutWebPartZones |
If true, the orphaned web part zones from layout web parts will be shown in design mode.
| |
ShowOrphanedWebPartZones |
If true, the orphaned web part zones will be shown in design mode.
|
Name | Description | |
---|---|---|
AddComponentsCSS |
Links component style sheets to the page. Styles of the following objects are included: web parts, page templates, page layouts, web part layouts, web part containers, transformations and device layouts.
| |
AddNewWebPart |
Adds the new web part to the page and returns its instance.
| |
AddNewWidget |
Adds the new widget to the page and returns its instance.
| |
CollectControlsOfTypeControlType |
Returns the list of all controls matching the given control type
| |
CollectEditableControls(Control) |
Returns the list of all the Editable controls within the given control.
| |
CollectEditableControls(Control, Boolean) |
Returns the list of all the Editable controls within the given control.
| |
CollectEditableControls(Control, Boolean, Boolean) |
Returns the list of all the Editable controls within the given control.
| |
CollectPlaceholders |
Returns the hashtable of all the CMSPagePlaceholders within the given control (searches only for the level 0 placeholders, does not search recursively in the placeholders).
| |
CollectWebParts |
Returns the list of all the WebParts within the given control (searches only for the level 0 placeholders, does not search recursively in the placeholders).
| |
CollectWebPartZones |
Returns the list of all the WebPartZones within the given control (searches only for the level 0 placeholders, does not search recursively in the placeholders).
| |
CombineWithDefaultValues |
Combines widget info with default XML system properties.
| |
ElementIsLayout |
Indicates if UI element contains template with IsLayout checked.
| |
FindManager |
Finds the Portal manager within the controls structure.
| |
FindPageManager(Control) |
Tries to find the page manager within the controls structure.
| |
FindPageManager(Page) |
Find page manager within the given page.
| |
FindParentPlaceholder |
Finds the parent page placeholder within the controls structure.
| |
GetAddInlineWidgetScript |
Gets the javascript code which ensures adding a new inline widget to the page.
| |
GetDisabledFormElementAttributes |
Gets the HTML attributes for the disabled form element
| |
GetHtmlEditorAreaCss |
Returns URL for the default editor stylesheet for the specified site.
| |
GetIconHtml |
Gets the web part / widget / page template icon HTML.
| |
GetUILocalizationCulture |
Returns a code of culture which should be used for localization while taking into account current ViewMode.
Only in case of LiveSite, UserWidgets or UserWidgetsDisabled the culture of content is returned,
otherwise context of user interface is assumed and current user's preferred UI culture is returned.
| |
GetWebPartControl |
Gets the web part control instance from given control.
| |
GetWorkflowViewMode |
Gets the view mode type with dependence on current node workflow step
| |
LocalizeStringForUI |
Localizes a given resourceString according to current ViewMode.
Use this method to ensure correct localization of UI components in various view modes. The target culture is determined using GetUILocalizationCulture method.
| |
RegisterEditableControl |
Registers the editable control.
| |
RegisterLayoutsScript |
Registers the layouts script
|