C# Class DD4T.Mvc.ViewModels.XPM.XpmMarkupService.XPMTags

Afficher le fichier Open project: dd4t/DD4T.MVC

Méthodes publiques

Свойство Type Description
BootStrap string
ComponentSeFormat string
FieldSeFormat string
PageSeFormat string
RegionSeFormat string

Méthodes publiques

Méthode Description
GenerateSiteEditComponentTag ( IComponentPresentation cp ) : string

Generates a SiteEdit tag for a componentpresentation. It also needs to know which region it's in (for component swapping) and the order of the page (for a true unique ID).

GenerateSiteEditFieldMarkingWithXpath ( string xpath ) : string

Function generates a fieldmarking for a single-value SiteEditable field based on field name and xpath. For multi-value fields, please code the JSON yourself.

GenerateSiteEditFieldTag ( IField field ) : string

generates siteedit field tag

GenerateSiteEditFieldTag ( IField field, int mvOrder ) : string

generates siteedit field tag for a specific instance of multivalue field.

GenerateSiteEditPageTag ( IPage page, string tridionHostUrl ) : string

Generates SiteEdit tag for given page.

GenerateSiteEditRegionTag ( string title, int minOccurs, int maxOccurs, string schemaUri, string templateUri ) : string

It is possible to mark regions in your Page, so that only Components of a certain Schema can be dropped in there and the correct Component Template will automatically be applied to them.

Method Details

GenerateSiteEditComponentTag() public static méthode

Generates a SiteEdit tag for a componentpresentation. It also needs to know which region it's in (for component swapping) and the order of the page (for a true unique ID).
public static GenerateSiteEditComponentTag ( IComponentPresentation cp ) : string
cp IComponentPresentation The componentpresentation to mark.
Résultat string

GenerateSiteEditFieldMarkingWithXpath() public static méthode

Function generates a fieldmarking for a single-value SiteEditable field based on field name and xpath. For multi-value fields, please code the JSON yourself.
public static GenerateSiteEditFieldMarkingWithXpath ( string xpath ) : string
xpath string xpath
Résultat string

GenerateSiteEditFieldTag() public static méthode

generates siteedit field tag
public static GenerateSiteEditFieldTag ( IField field ) : string
field IField the field to mark
Résultat string

GenerateSiteEditFieldTag() public static méthode

generates siteedit field tag for a specific instance of multivalue field.
public static GenerateSiteEditFieldTag ( IField field, int mvOrder ) : string
field IField the field to mark
mvOrder int order of the multivalue instance (zero based)
Résultat string

GenerateSiteEditPageTag() public static méthode

Generates SiteEdit tag for given page.
public static GenerateSiteEditPageTag ( IPage page, string tridionHostUrl ) : string
page IPage Page the tag belongs to.
tridionHostUrl string
Résultat string

GenerateSiteEditRegionTag() public static méthode

It is possible to mark regions in your Page, so that only Components of a certain Schema can be dropped in there and the correct Component Template will automatically be applied to them.
public static GenerateSiteEditRegionTag ( string title, int minOccurs, int maxOccurs, string schemaUri, string templateUri ) : string
title string ContentType name or region title
minOccurs int minimum amount of components in this region
maxOccurs int maximum amount of components in this region
schemaUri string allowed schema tcm uri
templateUri string component template uri
Résultat string

Property Details

BootStrap public_oe static_oe property

string format representing UI 2012 bootstrap script.
public static string BootStrap
Résultat string

ComponentSeFormat public_oe static_oe property

string format representing UI 2012 component level tag.
public static string ComponentSeFormat
Résultat string

FieldSeFormat public_oe static_oe property

string format representing UI 2012 field marking.
public static string FieldSeFormat
Résultat string

PageSeFormat public_oe static_oe property

string format used to create UI 2012 page level tag.
public static string PageSeFormat
Résultat string

RegionSeFormat public_oe static_oe property

string format representing UI 2012 region marking.
public static string RegionSeFormat
Résultat string