Interface IDynamicContentCustomPreview
Interface that enables customized dynamic content preview.
Namespace: EPiServer.DynamicContent
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public interface IDynamicContentCustomPreview
Methods
CreateDirectPreview()
Creates the html that is used as a direct preview in the editor.
Declaration
string CreateDirectPreview()
Returns
Type | Description |
---|---|
System.String | An string containing customized html that will be shown in the html editor. |
CreateFullBlownPreview()
Creates html that is used for the full blown preview. See remarks for detailed information.
Declaration
string CreateFullBlownPreview()
Returns
Type | Description |
---|---|
System.String | A string with html that can be used as a preview. |
Remarks
This method can be used to create a custom preview of the dynamic content that is shown in the pop up in the editor. If the method returns null the standard rendering of the dynamic content will be used. If you want to create an empty preview return System.String.Empty.