Enum CPUtilsBaseClass.addonContext
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
When an addon is executed, this is a description of the context of the method. Used to support features like html-comments only appropriate for some context
public enum CPUtilsBaseClass.addonContext
Fields
ContextAdmin = 2Addon run by the admin site addon, to be displayed in the dashboard space
ContextEditor = 9Addon executed because it is set as the editor for a content field type. It reads details from the doc and creates an html edit tag(s).
ContextEmail = 4Addon executed when an email is being rendered for an individual
ContextFilter = 14Executes when the html page is complete. Can modify the html document in core.docBody
ContextHelpAdmin = 11deprecated
ContextHelpDeveloper = 12deprecated
ContextHelpUser = 10deprecated
ContextOnBodyEnd = 17Executes right before the end body. Return is placed in the html body
ContextOnBodyStart = 16Executes right after the body start. Return is placed in the html document
ContextOnContentChange = 13Addon executed by admin site when a content record is changed. Reads details from doc properties and act on the change
ContextOnNewVisit = 6Addon executed because when a new visit is created. The return is ignored.
ContextOnPageEnd = 7Addon executed right before the body end html tag. The return is placed in the html
ContextOnPageStart = 8Addon executed right after the open body tag. The return is placed in the html.
ContextPage = 1Addon placed on a page.
ContextRemoteMethodHtml = 5Addon executed as a remote method and is expected to return html (as opposed to JSON)
ContextRemoteMethodJson = 18Executes as a remote method. If return is a string, it is returned. If the return is any other type, it is serialized to JSON.
ContextSimple = 15Return the addon's return, add artifacts like css to document.
ContextTemplate = 3Addon placed on a template