C# Class ToSic.SexyContent.ContentBlocks.Render

Show file Open project: 2sic/2sxc

Public Methods

Method 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 method

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
return IHtmlString

One() public static method

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
return IHtmlString