gwp_eeid
The gwp_eeid
merge tag enables the retrieval of entry properties using the encrypted entry ID (eeid) URL parameter. This powerful feature allows for secure, dynamic content display based on entry data. The gwp_eeid
merge tag is intended for use on pages/posts/confirmation messages that are displayed in the browser. It is not suitable for use in emails.
Usage
The basic syntax for the gwp_eeid
merge tag is as follows:
{gwp_eeid:property}
Where property
is the specific entry property you wish to retrieve, such as id
, date_created
, or any custom field ID.
Using custom url-parameters
The gwp_eeid
merge tag supports other url parameters as well. It is also possible to pass multiple entries to a single page. For example, if you have this url-parameter string: ?eeid=encrypted-entry1&task=encrypted-entry2&entry=encrypted-entry3
You can access field 1 from the task entry (encrypted-entry2) by using:
{gwp_eeid_task:1}
How to pass an entry via the url
Use the gwp_encrypt modifier on an entry id to encrypt it for passing the entry via the url.
Using merge tag modifiers
It is possible to apply regular or advanced modifiers to the gwp_eeid merge tag, like it is possible with normal field merge tags.
Examples
This will output the value of the field with ID 1 for the entry that is passed by the encrypted eeid
parameter in the URL:
{gwp_eeid:1}
This will output the value of the field with ID 2 for the entry that is passed by the encrypted task
parameter in the URL:
{gwp_eeid_task:2}
This will output the date_created for the entry that is passed by the encrypted eeid
parameter in the URL:
{gwp_eeid:date_created}
Example of how to apply an advanced modifier:
{gwp_eeid_epid:7:gwp_get_matched_entry_value form_id=93 match_id=1 return_id=13}
Last updated: 01-11-2024