Dynamicweb 8 Documentation
ContentModule Class Members
Properties  Methods 


The following tables list the members exposed by ContentModule.

Public Constructors
 NameDescription
Public ConstructorContentModule ConstructorInitializes a new instance of the ContentModule class.  
Top
Public Properties
 NameDescription
Public PropertyFormatterGets or sets the formatter that is used to serve special type of the content to the clients.  
Public PropertyFormattingRequiredGets value indicating whether content of the special type must be served to the client.  
Public PropertyModuleSystemNameGets the system name of the module currently being attached  
Public PropertyPageviewGets 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.  
Public PropertyParagraphIdGets the paragraph ID of the current paragraph attaching the module  
Public PropertyParagraphRowGets 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.  
Public PropertyPropertiesGets or sets a Properties object with values of the settings set when this instance of the module was attached to a paragraph.  
Public PropertyRequestGets the HttpContext.Current.Request instance. Use Input.Request for requesting Querystring and form values to SQL Escape input..  
Public PropertyResponseGets the HttpContext.Current.Response instance.  
Public PropertyServerGets the HttpContext.Current.Server instance.  
Public PropertySessionGets the HttpContext.Current.Session instance.  
Top
Public Methods
 NameDescription
Public MethodFinalizeModuleOverride this method to provide code that needs to be executed after the module has been attached and rendered  
Public MethodGetContentOverride this method and return the HTML output for the module.  
Public MethodInitializeModuleInitializes the instance. Can be overridden  
Public MethodRequestContextGets 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.  
Top
Protected Methods
 NameDescription
Protected MethodCreateResponseCreates new response object which will be used to send a content of a special type to the client.  
Top
See Also

Reference

ContentModule Class
Dynamicweb Namespace

Send Feedback