Click or drag to resize
PortalHelper Class
Portal control functions.
Inheritance Hierarchy
SystemObject
  CMS.PortalEngine.Web.UIPortalHelper

Namespace: CMS.PortalEngine.Web.UI
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public static class PortalHelper

The PortalHelper type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberDefaultPageLayoutIconClass
Gets the default web part font icon CSS class.
Public propertyStatic memberDefaultPageTemplateIconClass
Gets the default web part font icon CSS class.
Public propertyStatic memberDefaultWebPartIconClass
Gets the default web part font icon CSS class.
Public propertyStatic memberDefaultWidgetIconClass
Gets the default widget font icon CSS class.
Public propertyStatic memberDisplayContentInDesignMode
If true, web part content should be displayed in design mode.
Public propertyStatic memberDisplayContentInUIElementDesignMode
If true, web part content should be displayed in UI element design mode.
Public propertyStatic memberOnSiteEditRelativeURL
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.
Public propertyStatic memberRenderWebPartIDCssClass
If true, the web part ID CSS class is rendered for web parts.
Public propertyStatic memberSafeMode
If true, safe mode is required (only for new design mode).
Public propertyStatic memberShowOrphanedLayoutWebPartZones
If true, the orphaned web part zones from layout web parts will be shown in design mode.
Public propertyStatic memberShowOrphanedWebPartZones
If true, the orphaned web part zones will be shown in design mode.
Top
Methods
  NameDescription
Public methodStatic memberAddComponentsCSS
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.
Public methodStatic memberAddNewWebPart
Adds the new web part to the page and returns its instance.
Public methodStatic memberAddNewWidget
Adds the new widget to the page and returns its instance.
Public methodStatic memberCollectControlsOfTypeControlType
Returns the list of all controls matching the given control type
Public methodStatic memberCollectEditableControls(Control)
Returns the list of all the Editable controls within the given control.
Public methodStatic memberCollectEditableControls(Control, Boolean)
Returns the list of all the Editable controls within the given control.
Public methodStatic memberCollectEditableControls(Control, Boolean, Boolean)
Returns the list of all the Editable controls within the given control.
Public methodStatic memberCollectPlaceholders
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).
Public methodStatic memberCollectWebParts
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).
Public methodStatic memberCollectWebPartZones
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).
Public methodStatic memberCombineWithDefaultValues
Combines widget info with default XML system properties.
Public methodStatic memberElementIsLayout
Indicates if UI element contains template with IsLayout checked.
Public methodStatic memberFindManager
Finds the Portal manager within the controls structure.
Public methodStatic memberFindPageManager(Control)
Tries to find the page manager within the controls structure.
Public methodStatic memberFindPageManager(Page)
Find page manager within the given page.
Public methodStatic memberFindParentPlaceholder
Finds the parent page placeholder within the controls structure.
Public methodStatic memberGetAddInlineWidgetScript
Gets the javascript code which ensures adding a new inline widget to the page.
Public methodStatic memberGetDisabledFormElementAttributes
Gets the HTML attributes for the disabled form element
Public methodStatic memberGetHtmlEditorAreaCss
Returns URL for the default editor stylesheet for the specified site.
Public methodStatic memberGetIconHtml
Gets the web part / widget / page template icon HTML.
Public methodStatic memberGetUILocalizationCulture
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.
Public methodStatic memberGetWebPartControl
Gets the web part control instance from given control.
Public methodStatic memberGetWorkflowViewMode
Gets the view mode type with dependence on current node workflow step
Public methodStatic memberLocalizeStringForUI
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.
Public methodStatic memberRegisterEditableControl
Registers the editable control.
Public methodStatic memberRegisterLayoutsScript
Registers the layouts script
Top
See Also