Table of Contents

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

pageView PageView

PageView object

paragraphID int

ParagraphID

PublishingRenderer(int)

Constructs new object with paragraphID property

public PublishingRenderer(int paragraphID)

Parameters

paragraphID int

ParagraphID

Properties

ContentModule

public ContentModule ContentModule { get; set; }

Property Value

ContentModule

IsCustomTemplate

public bool IsCustomTemplate { get; set; }

Property Value

bool

PageView

public PageView PageView { get; set; }

Property Value

PageView

Preview

public bool Preview { get; set; }

Property Value

bool

Methods

GetFields(Publishing, string)

Get current publishing object fields

public string[] GetFields(Publishing publishing, string mode)

Parameters

publishing Publishing

Publishing object

mode string

Mode

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 int

Row index

row DataRow

Row object

keyValuePairs List<KeyValuePair<string, string>>

kv-pairs

Returns

bool

RenderDetailTemplate(Publishing, string, string)

Renders details template

public Template RenderDetailTemplate(Publishing publishing, string templatePath, string type)

Parameters

publishing Publishing

Publishing object

templatePath string

Path to template file

type string

Type

Returns

Template

Temlate object

RenderExcel(Publishing)

Renders module content in excel format

public OutputResult RenderExcel(Publishing publishing)

Parameters

publishing Publishing

Publishing object

Returns

OutputResult

RenderListTemplate(Publishing, string, string)

Renders list template

public Template RenderListTemplate(Publishing currentPublishing, string templatePath, string type)

Parameters

currentPublishing Publishing

Publishing object

templatePath string

Path to template file

type string

Type

Returns

Template

Template object

RenderPublishing(Publishing, Template)

Renders module content using template

public string RenderPublishing(Publishing publishing, Template template)

Parameters

publishing Publishing

Publishing object

template Template

Template

Returns

string

String value

To top