Method | Description | |
---|---|---|
GetComponent ( ) : Component |
Returns the component object that is defined in the package for this template. This method should only be called when there is an actual Component item in the package. It does not currently handle the situation where no such item is available. |
|
GetPage ( ) : Page |
Returns the Page object that is defined in the package for this template.
|
|
IsPageTemplate ( ) : bool |
True if the rendering context is a page, rather than component
|
|
Transform ( Engine engine, Package package ) : void |
Method | Description | |
---|---|---|
AddBootstrapJsonBinary ( IList |
||
AddJsonBinary ( object objectToSerialize, Component relatedComponent, StructureGroup structureGroup, string name, string variantId = null ) : Binary | ||
ExtractKeyValuePairs ( Component component ) : string>.Dictionary |
||
GetActiveModules ( ) : Component>.Dictionary |
||
GetChildOrganizationalItem ( OrganizationalItem root, string title ) : OrganizationalItem | ||
GetComponentTemplate ( ) : ComponentTemplate |
Returns the Template from the resolved item if it's a Component Template
|
|
GetOrganizationalItemContents ( OrganizationalItem orgItem, ItemType itemType, bool recursive ) : string>>.List |
||
GetPublication ( ) : Publication |
Gets the context Publication.
|
|
GetRegionName ( ComponentTemplate template ) : string | ||
GetSystemStructureGroup ( string subStructureGroupTitle = null ) : StructureGroup | ||
GetUsingItems ( RepositoryLocalObject subject, ItemType itemType ) : string>>.List |
||
Initialize ( Engine engine, Package package ) : void |
Initializes the engine and package to use in this TemplateBase object.
|
|
IsMasterWebPublication ( Publication publication ) : bool | ||
IsPreviewMode ( ) : bool | ||
JsonSerialize ( object objectToSerialize ) : string | ||
MergeData ( string>.Dictionary |
||
OutputSummary ( string name, IEnumerable |
Update the (JSON) summary in the Output item.
|
|
PutContextComponentOnTop ( ) : void |
Put the context component back on top of the package stack As some TBBs (like SiteEdit ones) rely on this being the first Component in the stack
|
|
XmlElementToTcmUriList ( |
Method | Description | |
---|---|---|
CheckInitialized ( ) : void | ||
GetActiveModules ( Component coreConfigComponent ) : Component>.Dictionary |
||
GetModuleConfigSchema ( ) : Schema | ||
GetModuleNameFromItem ( RepositoryLocalObject item, string moduleRoot ) : string | ||
IsPublishingToStaging ( ) : bool | ||
JsonEncode ( object json ) : string | ||
PublishBootstrapJson ( List |
||
PublishJson ( string json, Component relatedComponent, StructureGroup sg, string filename, string variantName ) : string | ||
PublishJsonData ( Dictionary |
||
PublishJsonData ( string>.Dictionary |
||
PublishJsonData ( List |
||
StripModuleFromName ( string name ) : string |
protected AddBootstrapJsonBinary ( IList |
||
binaries | IList |
|
relatedComponent | Component | |
sg | StructureGroup | |
variantName | string | |
return | void |
protected AddJsonBinary ( object objectToSerialize, Component relatedComponent, StructureGroup structureGroup, string name, string variantId = null ) : Binary | ||
objectToSerialize | object | |
relatedComponent | Component | |
structureGroup | StructureGroup | |
name | string | |
variantId | string | |
return | Binary |
protected ExtractKeyValuePairs ( Component component ) : string>.Dictionary |
||
component | Component | |
return | string>.Dictionary |
protected GetActiveModules ( ) : Component>.Dictionary |
||
return | Component>.Dictionary |
protected GetChildOrganizationalItem ( OrganizationalItem root, string title ) : OrganizationalItem | ||
root | OrganizationalItem | |
title | string | |
return | OrganizationalItem |
protected GetComponentTemplate ( ) : ComponentTemplate | ||
return | ComponentTemplate |
protected GetOrganizationalItemContents ( OrganizationalItem orgItem, ItemType itemType, bool recursive ) : string>>.List |
||
orgItem | OrganizationalItem | |
itemType | ItemType | |
recursive | bool | |
return | string>>.List |
protected static GetRegionName ( ComponentTemplate template ) : string | ||
template | ComponentTemplate | |
return | string |
protected GetSystemStructureGroup ( string subStructureGroupTitle = null ) : StructureGroup | ||
subStructureGroupTitle | string | |
return | StructureGroup |
protected GetUsingItems ( RepositoryLocalObject subject, ItemType itemType ) : string>>.List |
||
subject | RepositoryLocalObject | |
itemType | ItemType | |
return | string>>.List |
protected Initialize ( Engine engine, Package package ) : void | ||
engine | Engine | The engine to use in calls to the other methods of this TemplateBase object |
package | Package | The package to use in calls to the other methods of this TemplateBase object |
return | void |
protected IsMasterWebPublication ( Publication publication ) : bool | ||
publication | Publication | |
return | bool |
protected JsonSerialize ( object objectToSerialize ) : string | ||
objectToSerialize | object | |
return | string |
protected MergeData ( string>.Dictionary |
||
source | string>.Dictionary | |
mergeData | string>.Dictionary | |
return | string>.Dictionary |
protected OutputSummary ( string name, IEnumerable |
||
name | string | The name of the Template. |
files | IEnumerable |
The files/binaries created by the Template. |
return | void |
protected PutContextComponentOnTop ( ) : void | ||
return | void |
public abstract Transform ( Engine engine, Package package ) : void | ||
engine | Engine | |
package | Package | |
return | void |
protected XmlElementToTcmUriList ( |
||
data | ||
return | string>>.List |