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 IDictionary<string, string> 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 string GetModuleOutput(Paragraph paragraph, PageView pageview)
Parameters
paragraphParagraph- The paragraph instance.
pageviewPageView- 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
pageIdint- The id of the page in which to render the Grid.
containerstring- 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
paragraphParagraph
Returns
RenderParagraph(Paragraph, ContainerInfo)
public string RenderParagraph(Paragraph paragraph, ContainerInfo containerInfo)
Parameters
paragraphParagraphcontainerInfoContainerInfo