How to use events

Modified on Mon, 5 Oct at 1:53 PM

In our Alloy configuration, it is possible to add events. An event is a .xml file with one or more commands. We have several kinds of event types, which can be read about in this section. The event type must always be followed by one or more command cases, e.g.:

XML
<event type="BaseExtensions:SaveEvent">
 <Cmd case="BaseExtensions:update-fields"/>
</event>

Events folder from SD Installers

Within SD.installers, locate the folder named 'Events' placed as follows:

SD.Installers\AlloyPlugins\ModuleLibrary\Events\

Copy the folder and place it in the clients folder called Modules. Within this folder, a .xml named BaseExtensions is located, where the events to be used must be inserted.

It is important only to include the command cases needed by the client.

If the styles do not react as expected, try adding the cmd case 2 times in a row.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article