Configuration Events - Gadreel/dcraft GitHub Wiki

Events are raised when some action takes place on a site - such as a Contact form being submitted.

Where to add Events

They can be placed at the Site or Server level - see configuration for details on levels.

When a event is queried a match is searched for in the current site, then in the root site (if current site is not root) and then the server level.

How to Configure

create a catalog entry with a name like this: "Event-" + EventName

Example

When a contact managed form is submitted the name is

<Catalog Name="Event-ManagedForm-contact-submit">
	<Settings>
		... xml settings ...
	</Settings>
</Catalog>

Catalog Tag

For detailed information on this tag see Catalog

Reaction/Mode

Groovy Script

<Catalog Name="Event-ManagedForm-contact-submit">
	<Settings Mode="Groovy">
		... xml settings ...
		
		<Script>
			... code here ...
		</Script>
	</Settings>
</Catalog>

dcScript

<Catalog Name="Event-ManagedForm-contact-submit">
	<Settings Mode="dcScript">
		... xml settings ...
		
		<Script>
			... xml code here ...
		</Script>
	</Settings>
</Catalog>

class

<Catalog Name="Event-ManagedForm-contact-submit">
	<Settings Mode="Class" Classname="name of class">
		... xml settings ...
	</Settings>
</Catalog>
⚠️ **GitHub.com Fallback** ⚠️