Dynamicweb Namespace : ContentModule Class |
The following tables list the members exposed by ContentModule.
Name | Description | |
---|---|---|
ContentModule Constructor | Initializes a new instance of the ContentModule class. |
Name | Description | |
---|---|---|
Formatter | Gets or sets the formatter that is used to serve special type of the content to the clients. | |
FormattingRequired | Gets value indicating whether content of the special type must be served to the client. | |
ModuleSystemName | Gets the system name of the module currently being attached | |
Pageview | Gets the PageView instance and gives you information about the current page that your module is used in. It gives you access to properties like the Page, the AreaID, information like style sheets and templates that are effective and it provides access to the current User of the page. | |
ParagraphId | Gets the paragraph ID of the current paragraph attaching the module | |
ParagraphRow | Gets a DataRow that contains information about the current paragraph that your module is used in. It contains information like the ParagraphID, the ParagraphPageID and the ParagraphModuleSettings, which provides information about data the user has entered in the module. | |
Properties | Gets or sets a Properties object with values of the settings set when this instance of the module was attached to a paragraph. | |
Request | Gets the HttpContext.Current.Request instance. Use Input.Request for requesting Querystring and form values to SQL Escape input.. | |
Response | Gets the HttpContext.Current.Response instance. | |
Server | Gets the HttpContext.Current.Server instance. | |
Session | Gets the HttpContext.Current.Session instance. |
Name | Description | |
---|---|---|
FinalizeModule | Override this method to provide code that needs to be executed after the module has been attached and rendered | |
GetContent | Override this method and return the HTML output for the module. | |
InitializeModule | Initializes the instance. Can be overridden | |
RequestContext | Gets the value of Name in HTTP query string or post variables. Instead of using Request.QueryString or Request.Form. INFO: Calling this function is context sensitive to the paragraph the module is attached to. That means it will only return a value if PID=123 equals the ParagraphID of the paragraph currently attaching the module or if PID is not specified. This is usefull when the same module is attached several times on the same page and you want different states of the modules on each paragraph. I.e. adding a querystring variable PageNum=2 would cause 2 instances of the module on the same page to change to page 2 when using normal request. If changed to PID=123&PageNum=2 and using RequestContext would make only one of the instances go to page 2. |
Name | Description | |
---|---|---|
CreateResponse | Creates new response object which will be used to send a content of a special type to the client. |