You are here

README.txt in Token Insert Entity 7

Introduction
============
Token Insert Entity offers a WYSIWYG button to embed rendered entities in fields
using a WYSIWYG (tipically the body of a node).

Installation
============

Start by enabling the module and its dependencies.

If you have not set up WYSIWYG, follow the installation instructions at
Home » Administration » Configuration » Content authoring > WYSIWYG Profiles
(admin/config/content/wysiwyg). Then edit a WYSIWYG profile that uses
an editor and under Buttons and Plugins check Rendered Entity. Click the
save button.

Go to Home » Administration » Configuration >> Text formats
(admin/config/content/formats) and edit the configuration of the text
format that matches with the WYSIWYG profile you edited before.
Activate the "Replace tokens" filter and save your changes.

In order for the Insert Content form to work as expected, the
following core patch needs to be applied:
http://drupal.org/files/ac_select_event-365241-54.patch

Clear caches and add or edit a piece of content that contains the
configured WYSIWYG. You should see the Insert a token icon. Open it
and type part of the title of a piece of content, it should
autopopulate and show you the available view modes. Clicking
on Insert token should insert a token in the body. When the
node is rendered these tokens will be replaced by fully
rendered pieces of content.

File

README.txt
View source
  1. Introduction
  2. ============
  3. Token Insert Entity offers a WYSIWYG button to embed rendered entities in fields
  4. using a WYSIWYG (tipically the body of a node).
  5. Installation
  6. ============
  7. Start by enabling the module and its dependencies.
  8. If you have not set up WYSIWYG, follow the installation instructions at
  9. Home » Administration » Configuration » Content authoring > WYSIWYG Profiles
  10. (admin/config/content/wysiwyg). Then edit a WYSIWYG profile that uses
  11. an editor and under Buttons and Plugins check Rendered Entity. Click the
  12. save button.
  13. Go to Home » Administration » Configuration >> Text formats
  14. (admin/config/content/formats) and edit the configuration of the text
  15. format that matches with the WYSIWYG profile you edited before.
  16. Activate the "Replace tokens" filter and save your changes.
  17. In order for the Insert Content form to work as expected, the
  18. following core patch needs to be applied:
  19. http://drupal.org/files/ac_select_event-365241-54.patch
  20. Clear caches and add or edit a piece of content that contains the
  21. configured WYSIWYG. You should see the Insert a token icon. Open it
  22. and type part of the title of a piece of content, it should
  23. autopopulate and show you the available view modes. Clicking
  24. on Insert token should insert a token in the body. When the
  25. node is rendered these tokens will be replaced by fully
  26. rendered pieces of content.