VWM Get Action is a very simple ExpressionEngine 2 module that can retrieve action IDs and XIDs in EE templates. Instead of embedding PHP directly in your templates you can use some simple EE template code. This module came about when I was looking at how to create an EE2 standalone registration form.
VWM Get Action is licensed under the Apache 2 License.
I provide the following support options:
- GitHub Issue Tracker
- Devot:ee (coming soon)
- Personal contact form
Place module folder in system/expressionengine/third_party/
. If you download the code directly off GitHub you may have to rename the folder manually to vwm_get_action
.
The code below will retrieve the action ID for the register_member
method of the Member
module. This code will return something like 16
.
{exp:vwm_get_action:action_id module="Member" action="register_member"}{/exp:vwm_get_action:action_id}
The code below will return a fresh XID that looks something like 1ea31f51c87355007b818c64b232cc3123cd7cee
.
{exp:vwm_get_action:xid}{/exp:vwm_get_action:xid}