ModerationTokenViewHelper
Returns the moderation for the activation link of an event. The
action activate of the Management plugin is allowed with a valid
moderation only. The action confirm is allowed with a
valid moderation or for backend administrators. See
Access rules of the frontend management.
Use this ViewHelper in templates without a controller, which could assign the token. It returns an empty string, if the event does not exist.
Changed in version 12.0.1
The mail template of the EmailToReceiver finisher of the event form
uses the finisher variable Save of the
Save instead of this ViewHelper.
Changed in version 12.0.0
The token is created by
JWeiland instead of
the removed Event. The format of the token is
unchanged, so activation links of already sent mails stay valid.
Arguments
- event
- The event object or the UID of the event.
Basic example
<f:variable name="moderationToken">{e2:moderationToken(event: event)}</f:variable>
<f:link.action pageUid="{pidOfManagementPage}"
action="confirmActivation"
controller="Management"
extensionName="Events2"
pluginName="Management"
absolute="1"
arguments="{event: event, moderationToken: moderationToken}">
Datensatz freischalten
</f:link.action>