C# 클래스 DD4T.Mvc.SiteEdit.SiteEditService

파일 보기 프로젝트 열기: dd4t/DD4T.MVC

공개 프로퍼티들

프로퍼티 타입 설명
ComponentSeFormat string
FieldSeFormat string
MULTI_VALUE_SE_XPATH_Format string
PageSeFormat string
SIMPLE_SE_XPATH_PREFIX string
SINGLE_VALUE_SE_XPATH_Format string
SiteEditSettings SiteEditSettings
Ui2012BootStrap string
Ui2012ComponentSeFormat string
Ui2012FieldSeFormat string
Ui2012PageSeFormat string
Ui2012RegionSeFormat string

공개 메소드들

메소드 설명
GenerateSiteEditComponentTag ( IComponentPresentation cp, bool queryBased, string region ) : 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).

GenerateSiteEditComponentTag ( IComponentPresentation cp, string region ) : string

Generates a SiteEdit tag for a component presentation. Assumes that the component presentation is not query based.

GenerateSiteEditFieldMarkingWithXpath ( string fieldname, 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

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.

IsSiteEditEnabled ( IRepositoryLocal item ) : bool

Support function, checking if SE is enabled for the given item ID.

비공개 메소드들

메소드 설명
GenerateSiteEditFieldMarking ( string fieldname ) : string
GenerateSiteEditFieldMarking ( string fieldname, int mvOrder ) : string
GenerateSiteEditFieldMarking ( string fieldname, string schemaname ) : string
GenerateSiteEditFieldMarking ( string fieldname, string schemaname, int mvOrder ) : string
GetUniqueCpId ( ) : int
XPath2Name ( string xpath ) : string

메소드 상세

GenerateSiteEditComponentTag() 공개 정적인 메소드

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, bool queryBased, string region ) : string
cp IComponentPresentation The componentpresentation to mark.
queryBased bool indicates whether the component presentation is the result of a query (true), or if it is really part of the page (false)
region string The region the componentpresentation is to be shown in.
리턴 string

GenerateSiteEditComponentTag() 공개 정적인 메소드

Generates a SiteEdit tag for a component presentation. Assumes that the component presentation is not query based.
public static GenerateSiteEditComponentTag ( IComponentPresentation cp, string region ) : string
cp IComponentPresentation the component presentation to mark.
region string The region the componentpresentation is to be shown in.
리턴 string

GenerateSiteEditFieldMarkingWithXpath() 공개 정적인 메소드

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 fieldname, string xpath ) : string
fieldname string the name of the field
xpath string xpath
리턴 string

GenerateSiteEditFieldTag() 공개 정적인 메소드

generates siteedit field tag
public static GenerateSiteEditFieldTag ( IField field ) : string
field IField the field to mark
리턴 string

GenerateSiteEditFieldTag() 공개 정적인 메소드

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)
리턴 string

GenerateSiteEditPageTag() 공개 정적인 메소드

Generates SiteEdit tag for given page.
public static GenerateSiteEditPageTag ( IPage page ) : string
page IPage Page the tag belongs to.
리턴 string

GenerateSiteEditRegionTag() 공개 정적인 메소드

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
리턴 string

IsSiteEditEnabled() 공개 정적인 메소드

Support function, checking if SE is enabled for the given item ID.
public static IsSiteEditEnabled ( IRepositoryLocal item ) : bool
item IRepositoryLocal the tridion item
리턴 bool

프로퍼티 상세

ComponentSeFormat 공개적으로 정적으로 프로퍼티

string Format representing a Component-level SiteEdit tag.
public static string ComponentSeFormat
리턴 string

FieldSeFormat 공개적으로 정적으로 프로퍼티

string Format representing a simple, non-multivalue SiteEdit field marking.
public static string FieldSeFormat
리턴 string

MULTI_VALUE_SE_XPATH_Format 공개적으로 정적으로 프로퍼티

public static string MULTI_VALUE_SE_XPATH_Format
리턴 string

PageSeFormat 공개적으로 정적으로 프로퍼티

string Format used to create the Page-level SiteEdit tags.
public static string PageSeFormat
리턴 string

SIMPLE_SE_XPATH_PREFIX 공개적으로 정적으로 프로퍼티

public static string SIMPLE_SE_XPATH_PREFIX
리턴 string

SINGLE_VALUE_SE_XPATH_Format 공개적으로 정적으로 프로퍼티

public static string SINGLE_VALUE_SE_XPATH_Format
리턴 string

SiteEditSettings 공개적으로 정적으로 프로퍼티

SiteEdit settings object
public static SiteEditSettings SiteEditSettings
리턴 SiteEditSettings

Ui2012BootStrap 공개적으로 정적으로 프로퍼티

string format representing UI 2012 bootstrap script.
public static string Ui2012BootStrap
리턴 string

Ui2012ComponentSeFormat 공개적으로 정적으로 프로퍼티

string format representing UI 2012 component level tag.
public static string Ui2012ComponentSeFormat
리턴 string

Ui2012FieldSeFormat 공개적으로 정적으로 프로퍼티

string format representing UI 2012 field marking.
public static string Ui2012FieldSeFormat
리턴 string

Ui2012PageSeFormat 공개적으로 정적으로 프로퍼티

string format used to create UI 2012 page level tag.
public static string Ui2012PageSeFormat
리턴 string

Ui2012RegionSeFormat 공개적으로 정적으로 프로퍼티

string format representing UI 2012 region marking.
public static string Ui2012RegionSeFormat
리턴 string