📄️ Attachments in twig
The attachments stored in annotation entity are accessible using a special purpose-built URL:
📄️ Form redirect is not working for twig forms
After submitting a form, a site visitor can be redirected to any page using redirect attribute of the {% form %} tag
📄️ Access record identifier in form redirect
The record identifier can be included in the redirect string using %s placeholder. For example, if a form is used to create a new record, and you would like to redirect to a page viewrecord afterwards, then the new record identifier can be passed in the query string:
📄️ Messages in custom twig form
Messages in twig forms can be customized using messages property. That approach, however, does not work for custom twig forms where the form is provided as part of the {% form %} tag.
📄️ Add current WordPress user to Twig
To add WordPress user as an object to Twig, use the following code: