Click or drag to resize
PortalContext Class
Portal context methods.
Inheritance Hierarchy
System.Object
  CMS.Base.AbstractSimpleDataContainer<PortalContext>
    CMS.Base.AbstractDataContainer<PortalContext>
      CMS.Base.AbstractHierarchicalObject<PortalContext>
        CMS.Base.ContextContainer<PortalContext>
          CMS.Base.AbstractContext<PortalContext>
            CMS.PortalEngine.PortalContext

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 12.0.0
Syntax
C#
public class PortalContext : AbstractContext<PortalContext>, 
	INotCopyThreadItem

The PortalContext type exposes the following members.

Constructors
  NameDescription
Public methodPortalContext
Top
Properties
  NameDescription
Public propertyColumnNames
Available column names.
(Inherited from AbstractDataContainer<ParentObjectType>.)
Public propertyStatic memberContentPersonalizationEnabled
Indicates whether to show the Content personalization variant slider and render all the web part/zone variants.
Public propertyStatic memberContentPersonalizationVariantsEnabled
Gets or sets the value that indicates whether current page has at least one personalization variant
Public propertyStatic memberCurrentComponents
List of web part containers used by current page. Hashtable [containerName.ToLowerCSafe() -> WebPartContainerInfo]
Public propertyStatic memberCurrentEditableControls
Gets the list of editable controls on current page.
Public propertyStatic memberCurrentPageManager
Gets or sets the current page manager
Public propertyStatic memberCurrentSiteStylesheet
Returns the current site stylesheet info.
Public propertyStatic memberCurrentSiteStylesheetName
Returns current site stylesheet name.
Public propertyStatic memberCurrentUserIsDesigner
Indicates whether the current user has designer rights and can access web part properties (UI element)
Public propertyStatic memberDashboardName
Gets or sets the current dashboard name.
Public propertyStatic memberDashboardSiteName
Gets or sets the current dashboard site name.
Public propertyStatic memberEditableControlsHidden
Gets or sets the value that indicates whether current page may contain some hidden editable controls
Public propertyIsDefault
Returns true if the context is the default request context
(Inherited from ContextContainer<TParent>.)
Public propertyItem
Gets the value of particular property
(Inherited from AbstractHierarchicalObject<TObject>.)
Public propertyKey
Unique container key
(Inherited from ContextContainer<TParent>.)
Public propertyStatic memberMVTVariantsEnabled
Indicates whether to show the MVT variant slider and render all the web part/zone variants. This value will be true only when there are defined any multivariate tests for the current document.
Public propertyProperties
Properties available through the context.
(Inherited from AbstractHierarchicalObject<TObject>.)
Protected propertyPropertyList
Used property list
(Inherited from AbstractHierarchicalObject<TObject>.)
Protected propertyRegisteredColumns
Registered Columns
(Inherited from AbstractSimpleDataContainer<TObject>.)
Protected propertyRegisteredColumnsObject
Registered Columns object
(Inherited from AbstractSimpleDataContainer<TObject>.)
Protected propertyRegisteredProperties
Registered properties
(Inherited from AbstractHierarchicalObject<TObject>.)
Protected propertyRegisteredPropertiesObject
Registered properties object
(Inherited from AbstractHierarchicalObject<TObject>.)
Protected propertyUseLocalColumns
If true, the object uses local columns
(Inherited from AbstractSimpleDataContainer<TObject>.)
Protected propertyUseLocalProperties
If true, the object uses local properties
(Inherited from AbstractHierarchicalObject<TObject>.)
Public propertyStatic memberViewMode
Returns current ViewMode.
Top
Methods
  NameDescription
Public methodClearCurrent
Clears the current context value
(Inherited from ContextContainer<TParent>.)
Public methodStatic memberClearEditorWidgets
Clears the temporary interlayer which holds modified editor widgets.
Public methodCloneForNewThread
Clones the object for new thread
(Inherited from AbstractContext<TContext>.)
Public methodCombineWith
Combines current instance with other properties (modifies current instace!). List properties are merged from all the participating typeinfos, other properties are taken as first non-null value (non-null is determined by nullValues collection).
(Inherited from AbstractHierarchicalObject<TObject>.)
Public methodContainsColumn
Returns true if specified column is available in current structure.
(Inherited from AbstractDataContainer<ParentObjectType>.)
Public methodEnsureCurrent (Inherited from ContextContainer<TParent>.)
Public methodStatic memberEnsurePortalMode
Ensures the portal mode.
Public methodStatic memberGetEditorWidgets
Gets modified editor widgets from a temporary interlayer.
Public methodGetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObject<TObject>.)
Protected methodGetPropertyType
Gets the type of the given property
(Inherited from AbstractHierarchicalObject<TObject>.)
Public methodGetValue
Gets the object value.
(Inherited from AbstractSimpleDataContainer<TObject>.)
Public methodStatic memberGetViewMode
Gets current view mode.
Public methodHasSetter
Returns true if given property has a setter
(Inherited from AbstractHierarchicalObject<TObject>.)
Public methodStatic memberIsDesignMode
Returns true if the given mode is considered design mode (with web parts active)
Public methodStatic memberIsPortalMode
Returns true if the given mode is mode displaying the document.
Protected methodRegisterColumn(String, Func<TObject, Object>)
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainer<TObject>.)
Protected methodRegisterColumn(String, Func<TObject, Object>, Func<TObject, Object, Object>)
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainer<TObject>.)
Protected methodRegisterColumns
Registers the Columns of this object
(Inherited from AbstractSimpleDataContainer<TObject>.)
Protected methodRegisterProperties
Registers the properties of this object
(Inherited from AbstractHierarchicalObject<TObject>.)
Protected methodRegisterProperty(String, Func<TObject, Object>)
Registers the given property to the object
(Inherited from AbstractHierarchicalObject<TObject>.)
Protected methodRegisterProperty(String, Object, Func<TObject, Object, Object>)
Registers the given parameterized property to the object.
(Inherited from AbstractHierarchicalObject<TObject>.)
Public methodStatic memberSaveEditorWidgets
Saves the modified editor widgets into a temporary interlayer.
Public methodSetAsCurrent
Sets the current instance as the current thread item
(Inherited from ContextContainer<TParent>.)
Public methodSetProperty
Gets the context property.
(Inherited from AbstractHierarchicalObject<TObject>.)
Public methodStatic memberSetRequestViewMode
Sets current request view mode.
Public methodSetValue
Sets the object value.
(Inherited from AbstractSimpleDataContainer<TObject>.)
Public methodStatic memberSetViewMode
Sets current view mode.
Public methodTryGetProperty(String, Object)
Gets the context property.
(Inherited from AbstractHierarchicalObject<TObject>.)
Public methodTryGetProperty(String, Object, Boolean)
Returns value of property.
(Inherited from AbstractHierarchicalObject<TObject>.)
Public methodTryGetValue
Returns value of column.
(Inherited from AbstractSimpleDataContainer<TObject>.)
Public methodStatic memberUpdateViewMode
Updates the current view mode
Top
See Also