Click or drag to resize

IPagePresentationCollectionSerializeForPage Method


Produces the XML element that will be injected into Page XML upon publish

Namespace:  Ingeniux.CMS.Presentation
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
XElement SerializeForPage(
	string pubTgtId = null
)

Parameters

pubTgtId (Optional)
Type: SystemString
The id of the Publishing Target to be published to, if not specified, only serialize default presentation that applies to all Publishing Targets, which could be null, if not Presentation is associated with the given target

Return Value

Type: XElement
The generated XML element, or null, if not Presentation associated with given Publishing Target
Examples
Examples

Sample XML output

XML
<IGX_Presentations>
  <DefaultPresentations>
    <Presentation ID = "i2nfdkduwl0042ndfiads" Name="Main" ContainerID="mainBody" />    
  </DefaultPresentations>
</IGX_Presentations>
See Also