Entity Embed Tokens

Component ID

1567862

Component name

Entity Embed Tokens

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

About

Entity Embed is a module that makes views and nodes available as tokens.

These tokens can be used in any field that can use an output filter like Body or other textareas.

Installation

Entity embed requires Token Filter. Token Filter must be enabled on each text format you want to use the module with. For example to turn Token Filter on for Full HTML visit /admin/config/content/formats/full_html and check "Replace tokens."

Usage

For nodes the syntax is [embed:node:nid] where nid is the node id of the node you want to embed. The module calls node_load, so it accepts the same arguments that node_load accepts.

For views the syntax is [embed:view:view_name:display_id:args] where view_name is the machine name of the view you want to embed, display_id is the display id you want to embed i.e. block_1 and args are any additional arguments you want to pass to contextual filters. The args should be colon separated.