Table of Contents

Class Content

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll
Renders paragraphs for content containers of page and layout templates.
public class Content
Inheritance
Content
Inherited Members

Remarks

Only runs in the context of a PageView instance

Constructors

Content(PageView)

Initializes a new instance of the Content class.
public Content(PageView pageview)

Parameters

pageview PageView

Methods

CreateContent(int)

public IDictionary<string, string> CreateContent(int contentId)

Parameters

contentId int

Returns

IDictionary<string, string>

GetModuleOutput(Paragraph, PageView)

Gets the output of a ContentModule. Based on the system name of the passed Paragraph, a ContentModule instance of that module is instantiated and executed in the context of the passed PageView.
public static string GetModuleOutput(Paragraph paragraph, PageView pageview)

Parameters

paragraph Paragraph
The paragraph instance.
pageview PageView
The pageview context to execute the module in.

Returns

string
System.String.

RenderExternalGrid(int, string)

Renders the Grid in the given container on the page with the given ID. If no Grid exists on the page in the given container, the empty string is returned.
public string RenderExternalGrid(int pageId, string container)

Parameters

pageId int
The id of the page in which to render the Grid.
container string
The container that the Grid belongs to.

Returns

string
A string with the rendered output of the Grid if it exists; the empty string otherwise.

RenderParagraph(Paragraph)

public string RenderParagraph(Paragraph paragraph)

Parameters

paragraph Paragraph

Returns

string

RenderParagraph(Paragraph, ContainerInfo)

public string RenderParagraph(Paragraph paragraph, ContainerInfo containerInfo)

Parameters

paragraph Paragraph
containerInfo ContainerInfo

Returns

string
To top