Class Content
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Renders paragraphs for content containers of page and layout templates.
- Inheritance
-
Content
- Inherited Members
Remarks
Only runs in the context of a Page
Constructors
Content(PageView)
Initializes a new instance of the Content class.
Parameters
pageview
PageView
Methods
CreateContent(int)
Parameters
contentId
int
Returns
GetModuleOutput(Paragraph, PageView)
Gets the output of a Content
Parameters
paragraph
ParagraphThe paragraph instance.
pageview
PageView The pageview context to execute the module in.
Returns
- Output
Result 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.
Parameters
pageId
intThe id of the page in which to render the Grid.
container
stringThe container that the Grid belongs to.
Returns
- string
A string with the rendered output of the Grid if it exists; the empty string otherwise.
RenderGridRow(int)
Render grid row content
Parameters
rowId
intThe id of the grid row
Returns
- string
A string with the rendered output of the Row if it exists; the empty string otherwise.
RenderParagraph(Paragraph)
Parameters
paragraph
Paragraph
Returns
RenderParagraph(Paragraph, ContainerInfo)
Parameters
paragraph
ParagraphcontainerInfo
ContainerInfo