Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 ( |
Метод | Описание | |
---|---|---|
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 | |
Результат | 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 | |
Результат | Binary |
protected ExtractKeyValuePairs ( Component component ) : string>.Dictionary |
||
component | Component | |
Результат | string>.Dictionary |
protected GetActiveModules ( ) : Component>.Dictionary |
||
Результат | Component>.Dictionary |
protected GetChildOrganizationalItem ( OrganizationalItem root, string title ) : OrganizationalItem | ||
root | OrganizationalItem | |
title | string | |
Результат | OrganizationalItem |
protected GetComponentTemplate ( ) : ComponentTemplate | ||
Результат | ComponentTemplate |
protected GetOrganizationalItemContents ( OrganizationalItem orgItem, ItemType itemType, bool recursive ) : string>>.List |
||
orgItem | OrganizationalItem | |
itemType | ItemType | |
recursive | bool | |
Результат | string>>.List |
protected static GetRegionName ( ComponentTemplate template ) : string | ||
template | ComponentTemplate | |
Результат | string |
protected GetSystemStructureGroup ( string subStructureGroupTitle = null ) : StructureGroup | ||
subStructureGroupTitle | string | |
Результат | StructureGroup |
protected GetUsingItems ( RepositoryLocalObject subject, ItemType itemType ) : string>>.List |
||
subject | RepositoryLocalObject | |
itemType | ItemType | |
Результат | 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 |
Результат | void |
protected IsMasterWebPublication ( Publication publication ) : bool | ||
publication | Publication | |
Результат | bool |
protected JsonSerialize ( object objectToSerialize ) : string | ||
objectToSerialize | object | |
Результат | string |
protected MergeData ( string>.Dictionary |
||
source | string>.Dictionary | |
mergeData | string>.Dictionary | |
Результат | string>.Dictionary |
protected OutputSummary ( string name, IEnumerable |
||
name | string | The name of the Template. |
files | IEnumerable |
The files/binaries created by the Template. |
Результат | void |
protected PutContextComponentOnTop ( ) : void | ||
Результат | void |
public abstract Transform ( Engine engine, Package package ) : void | ||
engine | Engine | |
package | Package | |
Результат | void |
protected XmlElementToTcmUriList ( |
||
data | ||
Результат | string>>.List |