C# Class ToSic.SexyContent.ContentBlocks.Render

Afficher le fichier Open project: 2sic/2sxc

Méthodes publiques

Méthode Description
All ( DynamicEntity context, string dontRelyOnParameterOrder = Constants.RandomProtectionParameter, string field = null, string merge = null ) : IHtmlString

Render content-blocks into a larger html-block containing placeholders

One ( DynamicEntity context, string dontRelyOnParameterOrder = Constants.RandomProtectionParameter, DynamicEntity item = null, string field = null, System.Guid newGuid = null ) : IHtmlString

Render one content block This is accessed through DynamicEntity.Render() At the moment it MUST stay internal, as it's not clear what API we want to surface

Method Details

All() public static méthode

Render content-blocks into a larger html-block containing placeholders
public static All ( DynamicEntity context, string dontRelyOnParameterOrder = Constants.RandomProtectionParameter, string field = null, string merge = null ) : IHtmlString
context DynamicEntity The parent-item containing the content-blocks and providing edit-context
dontRelyOnParameterOrder string
field string Field containing the content-blocks
merge string Optional: html-text containing special placeholders
Résultat IHtmlString

One() public static méthode

Render one content block This is accessed through DynamicEntity.Render() At the moment it MUST stay internal, as it's not clear what API we want to surface
public static One ( DynamicEntity context, string dontRelyOnParameterOrder = Constants.RandomProtectionParameter, DynamicEntity item = null, string field = null, System.Guid newGuid = null ) : IHtmlString
context DynamicEntity The parent-item containing the content-blocks and providing edit-context
dontRelyOnParameterOrder string
item DynamicEntity The content-block item to render
field string Optional:
newGuid System.Guid
Résultat IHtmlString