Class PublishingRenderer
- Namespace
- Dynamicweb.DataManagement
- Assembly
- Dynamicweb.DataManagement.dll
Represents PublishingRenderer
public class PublishingRenderer
- Inheritance
-
PublishingRenderer
- Inherited Members
Constructors
PublishingRenderer()
Default constructor
public PublishingRenderer()
PublishingRenderer(PageView, int)
Constructs new object with PageView and paragraphID property
public PublishingRenderer(PageView pageView, int paragraphID)
Parameters
PublishingRenderer(int)
Constructs new object with paragraphID property
public PublishingRenderer(int paragraphID)
Parameters
paragraphID
intParagraphID
Properties
ContentModule
public ContentModule ContentModule { get; set; }
Property Value
IsCustomTemplate
public bool IsCustomTemplate { get; set; }
Property Value
PageView
public PageView PageView { get; set; }
Property Value
Preview
public bool Preview { get; set; }
Property Value
Methods
GetFields(Publishing, string)
Get current publishing object fields
public string[] GetFields(Publishing publishing, string mode)
Parameters
publishing
PublishingPublishing object
mode
stringMode
Returns
- string[]
IsSelectedRow(int, DataRow, List<KeyValuePair<string, string>>)
Shows if specific row is selected
public static bool IsSelectedRow(int rowIndex, DataRow row, List<KeyValuePair<string, string>> keyValuePairs)
Parameters
rowIndex
intRow index
row
DataRowRow object
keyValuePairs
List<KeyValuePair<string, string>>kv-pairs
Returns
RenderDetailTemplate(Publishing, string, string)
Renders details template
public Template RenderDetailTemplate(Publishing publishing, string templatePath, string type)
Parameters
publishing
PublishingPublishing object
templatePath
stringPath to template file
type
stringType
Returns
- Template
Temlate object
RenderExcel(Publishing)
Renders module content in excel format
public OutputResult RenderExcel(Publishing publishing)
Parameters
publishing
PublishingPublishing object
Returns
RenderListTemplate(Publishing, string, string)
Renders list template
public Template RenderListTemplate(Publishing currentPublishing, string templatePath, string type)
Parameters
currentPublishing
PublishingPublishing object
templatePath
stringPath to template file
type
stringType
Returns
- Template
Template object
RenderPublishing(Publishing, Template)
Renders module content using template
public string RenderPublishing(Publishing publishing, Template template)
Parameters
publishing
PublishingPublishing object
template
TemplateTemplate
Returns
- string
String value