PageTemplateInstance Class |
Namespace: CMS.PortalEngine
public class PageTemplateInstance : IStructuredData
The PageTemplateInstance type exposes the following members.
Name | Description | |
---|---|---|
PageTemplateInstance |
Empty constructor
| |
PageTemplateInstance(String) |
Constructor
|
Name | Description | |
---|---|---|
mWebPartsXml |
Web parts XML.
| |
mWebPartZones |
Collection of the webpart zones contained within the page template.
|
Name | Description | |
---|---|---|
ContentPersonalizationVariantsLoaded |
Indicates whether Content personalization variants have been loaded for this page template instance.
| |
MVTVariantsLoaded |
Indicates whether MVT variants have been loaded for this page template instance.
| |
ParentPageTemplate |
Parent page template.
| |
WebParts |
Gets or sets the page template WebParts.
| |
WebPartZones |
Web part zones contained within the Page template.
|
Name | Description | |
---|---|---|
AddWebPart(String, WebPartInstance, Int32) |
Adds the web part instance to the specified zone.
| |
AddWebPart(String, Int32, Int32) |
Adds the web part instance to the specified zone
| |
AddWidget |
Adds the widget instance to the specified zone.
| |
AddZone |
Adds the given zone to the template
| |
Clone |
Clones the instance of page templates.
| |
CloneWebPart |
Clones the web part.
| |
CombineWith(WebPartInstance) |
Combines the page template instance with a web part instance, applies the web part instance settings to the current page template instance.
| |
CombineWith(WebPartZoneInstance) |
Combines the page template instance with a web part zone instance, applies the web part zone instance settings to the current page template instance.
| |
CombineWith(PageTemplateInstance, WidgetZoneTypeEnum, Boolean) |
Combines two page template instances, applies the other page template instance settings (only those matching the required zone type in the current instance) to the current instance. Does not add new zones which are not present in the current instance.
| |
ContainsZones |
Returns true if the page template contains zones of the specific type.
| |
EnsureZone |
Ensures that the instance of the given zone exists.
| |
GetNestedZones |
Gets the list of zones nested in the given web part
| |
GetUniqueWebPartId |
Returns unique web part ID within this Page template.
| |
GetWebPart(Guid, String) |
Returns the web part with specified GUID or ID or null if not found.
| |
GetWebPart(String, Boolean) |
Returns the web part with specified ID or null if not found.
| |
GetWebPart(Guid, Int32, Int32) |
Finds the web part by its GUID.
| |
GetXmlElement(XmlDocument) |
Gets the XML element for the data
| |
GetXmlElement(XmlDocument, WidgetZoneTypeEnum) |
Gets the XML element for the data
| |
GetZone |
Returns the zone instance with specified ID or null when not found.
| |
GetZonesXML |
Returns the XML representation of the zones configuration.
| |
LoadFromXml |
Reloads the zones and webparts info.
| |
LoadFromXmlElement |
Loads the data from the given XML element
| |
LoadVariants |
Loads all the MVT/Content personalization variants for this template instance.
| |
LoadZones | Obsolete.
Reloads the zones and webparts info.
| |
MoveAllWebParts |
Moves all web parts from one zone to another
| |
MoveWebPart |
Moves the web part between two zones
| |
MoveWebPartDown(WebPartInstance, Boolean) |
Moves web part down within its zone.
| |
MoveWebPartDown(String, String, Boolean) |
Moves web part down within the instance of the specified zone.
| |
MoveWebPartToNextZone(WebPartInstance) |
Moves the web part to the Next zone.
| |
MoveWebPartToNextZone(String, String) |
Moves the web part to the next zone.
| |
MoveWebPartToPreviousZone(WebPartInstance) |
Moves the web part to the previous zone.
| |
MoveWebPartToPreviousZone(String, String) |
Moves the web part to the previous zone.
| |
MoveWebPartUp(WebPartInstance, Boolean) |
Moves web part up within its zone.
| |
MoveWebPartUp(String, String, Boolean) |
Moves web part up within the instance of the specified zone.
| |
RemoveZone |
Removes zone from template instance
| |
ZoneExists |
Returns true if zone with given ID already exists
|