AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageModule Members

The AdvantageModule type exposes the following members.

Constructors


  Name Description
Public method AdvantageModule
Initializes a new instance of the AdvantageModule class.

Methods


  Name Description
Public method BroadcastEvent
Allows broadcasting of information between modules rendered in an AdvantageTemplatePage. One module can broadcast a message with an event ID and arguments, other modules that override the "ReceiveEvent" virtual method will receive the message. Messages should be broadcast PRIOR to the "PreRender Event" so that other modules may act upon the message.
Public method Client_ObjectClearLocks
Unlocks all object specified by the unique lock key.
Public method Client_ObjectLock

Requests an object lock for a specified user and master identifier.

This will attempt to lock the record on the server and return the status. It will generate the javascript client code to poll for refresh/locking.

Successful API requests will return the status of the lock : { Status: 0, Message: '', UserName: '' }.

Status

  • Error = -1
  • Unlocked = 0
  • Locked = 0
  • LockedByOtherSession = 0

Message

  • The return message from the lock request

UserName

  • The user who currently owns the lock
Public method Client_UnObjectLock
Object unlock. Unlocks a specific object.
Public method GetNavigations
Pass through to AdvantagePageTemplate GetNavigations
Public method ReceiveEvent
Virtual method that can be overridden to receive messages that are broadcast via the "BroadcastEvent" method
Public method RecieveEvent Obsolete.
Receives the event. This method is obsolete; use ReceiveEvent(String, Hashtable) instead.
Public method RegisterBottomScript(Literal)
Registers content to the bottom of the page
Public method RegisterBottomScript(String, Literal)
Registers content to the bottom of the page
Public method RegisterBottomScript(PlaceHolder)
Registers content to the bottom of the page
Public method RegisterBottomScript(String, PlaceHolder)
Registers content to the bottom of the page
Public method RegisterBottomScript(String, String)
Registers content to the bottom of the page
Public method RegisterBottomScript(String)
Registers content to the bottom of the page
Public method RegisterTopScript(Literal)
Registers content to the top of the page.
Public method RegisterTopScript(String, Literal)
Registers content to the top of the page
Public method RegisterTopScript(PlaceHolder)
Registers content to the top of the page
Public method RegisterTopScript(String, PlaceHolder)
Registers content to the top of the page
Public method RegisterTopScript(String, String)
Registers content to the top of the page
Public method RegisterTopScript(String)
Registers content to the top of the page
Public method RenderControlContent
Renders the content of the control.
Public method SearchIndexUsingBrowserInstance
[AdvantagePageTemplate.SearchIndexUsingBrowserInstance]
Public method SetOpenGraph
Sets the open graph.
Public method SiteSettings()()()()
Pass through to AdvantagePageTemplate SiteSettings (non-generic).
Public method SiteSettings<(Of <<'(T>)>>)()()()()
Pass through to AdvantagePageTemplate SiteSettings

Properties


  Name Description
Public property Attributes
Gets a collection of all attribute name and value pairs declared in the user control tag within the .aspx file.
Public property ClassName
The CSS class configured for this module's content.
Public property ConfigurationEngine
Gets the configuration engine.
Public property ContainerPanel
Gets the ASP Panel that wraps the module. Used for controls that have absolute positioning or special requirements.
Public property CSPNonce
Gets the nonce value for Content-Security-Policy
Public property CurrentDomain
Pass through to AdvantagePageTemplate CurrentDomain
Public property CurrentLanguage
Pass through to AdvantagePageTemplate CurrentLanguage
Public property CurrentNavigationPage
Pass through to AdvantagePageTemplate CurrentNavigationPage.
Public property CurrentSql
Pass through to AdvantagePageTemplate CurrentSql
Public property DatabaseCacheManager
Gets the database cache manager, which allows for domain/language-scoped storage of items by ID.
Public property IsActive
Is the module active (available)
Public property IsEditDraggable
Overridable property to determine if a module is draggable in the visual editor.
Public property IsInlineEdit
Gets a value indicating whether this instance is inline edit.
Public property IsPostBack
Gets a value indicating whether the user control is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.
Public property IsPreview
Property retrieved from AdvantagePageTemplate.
Public property IsSearchAgent
Property retrieved from AdvantagePageTemplate.
Public property ModifierTitle
Title added in SitePage.
Public property ModuleContent
Managed content
Public property ModuleEngine
Pass through to AdvantagePageTemplate ModuleEngine
Public property ModuleID
Id of the module referenced in Global Configuration->Modules.
Public property Name
Name of the module referenced in Global Configuration->Modules.
Public property PageMetaDescription
Pass through to AdvantagePageTemplate PageMetaDescription
Public property PageMetaKeywords
Pass through to AdvantagePageTemplate PageMetaKeywords
Public property PageTitle
Pass through to AdvantagePageTemplate PageTitle
Public property RenderMode
Property retrieved from AdvantagePageTemplate.
Public property SortOrder
Historical usage, no longer active.
Public property Span
The span configured for this modules content
Public property WebCacheManager
Gets the web cache manager, which allows for domain/language-scoped storage of items by ID.