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
pageviewPageView
Methods
CreateContent(int)
public ContentCollection CreateContent(int contentId)
Parameters
contentIdint
Returns
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 OutputResult GetModuleOutput(Paragraph paragraph, PageView pageview)
Parameters
paragraphParagraphThe paragraph instance.
pageviewPageViewThe pageview context to execute the module in.
Returns
- OutputResult
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
pageIdintThe id of the page in which to render the Grid.
containerstringThe 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
public string RenderGridRow(int rowId)
Parameters
rowIdintThe 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)
public OutputResult RenderParagraph(Paragraph paragraph)
Parameters
paragraphParagraph
Returns
RenderParagraph(Paragraph, ContainerInfo)
public OutputResult RenderParagraph(Paragraph paragraph, ContainerInfo containerInfo)
Parameters
paragraphParagraphcontainerInfoContainerInfo