Click or drag to resize
PortalHelper Methods

The PortalHelper type exposes the following members.

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
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 memberCombineRegisterCode
Combines the register code blocks and avoids duplicated declarations.
Public methodStatic memberCombineWithDefaultValues
Combines widget info with default XML system properties.
Public methodStatic memberEnsureScriptManager
Ensures the Script manager on the page.
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 memberGetIconHtml
Gets the web part / widget / page template icon HTML.
Public methodStatic memberGetPageTemplateASPXCode
Gets the page template ASPX code.
Public methodStatic memberGetWebPartASPXCode
Gets the ASPX code for the web part.
Public methodStatic memberGetWebPartControl
Gets the web part control instance from given control.
Public methodStatic memberGetWebPartZoneASPXCode
Gets the web part zone ASPX code.
Public methodStatic memberGetWorkflowViewMode
Gets the view mode type with dependence on current node workflow step
Public methodStatic memberIsOnSiteEditingEnabled
Gets the value that indicates whether on site editing is enabled for specific site name
Public methodStatic memberRegisterLayoutsScript
Registers the layouts script
Top
See Also