Table of Contents

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 = 2

Addon run by the admin site addon, to be displayed in the dashboard space

ContextEditor = 9

Addon 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 = 4

Addon executed when an email is being rendered for an individual

ContextFilter = 14

Executes when the html page is complete. Can modify the html document in core.docBody

ContextHelpAdmin = 11

deprecated

ContextHelpDeveloper = 12

deprecated

ContextHelpUser = 10

deprecated

ContextOnBodyEnd = 17

Executes right before the end body. Return is placed in the html body

ContextOnBodyStart = 16

Executes right after the body start. Return is placed in the html document

ContextOnContentChange = 13

Addon executed by admin site when a content record is changed. Reads details from doc properties and act on the change

ContextOnNewVisit = 6

Addon executed because when a new visit is created. The return is ignored.

ContextOnPageEnd = 7

Addon executed right before the body end html tag. The return is placed in the html

ContextOnPageStart = 8

Addon executed right after the open body tag. The return is placed in the html.

ContextPage = 1

Addon placed on a page.

ContextRemoteMethodHtml = 5

Addon executed as a remote method and is expected to return html (as opposed to JSON)

ContextRemoteMethodJson = 18

Executes 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 = 15

Return the addon's return, add artifacts like css to document.

ContextTemplate = 3

Addon placed on a template