Current Page Entity Tokens
545 sites
Security covered
This module makes information about the current page's entity available through tokens. This allows you to dynamically use data from the current node, such as its fields, in various contexts like autofilling forms or filtering embedded content.
Add current request entity tokens to [current-page]
Taken from a Tokens feature request at https://www.drupal.org/project/token/issues/919760, this micro-module makes the current request's entity information available under the [current-page] token.
For instance,
- an embedded webform might want to have access to [current-page:node:field_email] to autofill a reply-to
- a Paragraph on a page might want access to [current-page:node:field_tags] to filter an embedded View