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 ContentCollection CreateContent(int contentId)
Parameters
contentId
int
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
paragraph
ParagraphThe paragraph instance.
pageview
PageViewThe 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
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.
RenderParagraph(Paragraph)
public OutputResult RenderParagraph(Paragraph paragraph)
Parameters
paragraph
Paragraph
Returns
RenderParagraph(Paragraph, ContainerInfo)
public OutputResult RenderParagraph(Paragraph paragraph, ContainerInfo containerInfo)
Parameters
paragraph
ParagraphcontainerInfo
ContainerInfo