You are here

README.txt in API Tokens 8

Same filename and directory in other branches
  1. 8.2 README.txt
  2. 7 README.txt
-- SUMMARY --

The API Tokens module provides an input filter that allows to replace custom
parametric tokens (API tokens) with rendered content. To register an API token
define an "ApiToken" plugin.

For example, you can define a token which will render a current date as follows:
  [api:date/],
or render blocks:
  [api:block["block_id"]/],
or nodes:
  [api:node[123, "teaser"]/].

Note that API Tokens module does not provide any visible functions to the user
on its own, it just provides handling services for other modules. See
api_tokens_example module for example implementations.

To disable caching of dynamic API tokens for anonymous users disable "Internal
Page Cache" (page_cache) core module.


For a full description of the module, visit the project page:
  http://drupal.org/project/api_tokens

To submit bug reports and feature suggestions, or to track changes:
  http://drupal.org/project/issues/api_tokens


-- REQUIREMENTS --

Filter.


-- INSTALLATION --

* Install as usual, see http://drupal.org/docs/8/extending-drupal-8 for
  further information.


-- CONFIGURATION --

* Go to /admin/config/content/formats and enable the API Tokens filter for any
  of your existing text formats or create a new one.

* List of all registered tokens available at admin/config/content/api-tokens.


-- CONTACT --

Current maintainers:
* Alex Zhulin - https://drupal.org/user/2659881

File

README.txt
View source
  1. -- SUMMARY --
  2. The API Tokens module provides an input filter that allows to replace custom
  3. parametric tokens (API tokens) with rendered content. To register an API token
  4. define an "ApiToken" plugin.
  5. For example, you can define a token which will render a current date as follows:
  6. [api:date/],
  7. or render blocks:
  8. [api:block["block_id"]/],
  9. or nodes:
  10. [api:node[123, "teaser"]/].
  11. Note that API Tokens module does not provide any visible functions to the user
  12. on its own, it just provides handling services for other modules. See
  13. api_tokens_example module for example implementations.
  14. To disable caching of dynamic API tokens for anonymous users disable "Internal
  15. Page Cache" (page_cache) core module.
  16. For a full description of the module, visit the project page:
  17. http://drupal.org/project/api_tokens
  18. To submit bug reports and feature suggestions, or to track changes:
  19. http://drupal.org/project/issues/api_tokens
  20. -- REQUIREMENTS --
  21. Filter.
  22. -- INSTALLATION --
  23. * Install as usual, see http://drupal.org/docs/8/extending-drupal-8 for
  24. further information.
  25. -- CONFIGURATION --
  26. * Go to /admin/config/content/formats and enable the API Tokens filter for any
  27. of your existing text formats or create a new one.
  28. * List of all registered tokens available at admin/config/content/api-tokens.
  29. -- CONTACT --
  30. Current maintainers:
  31. * Alex Zhulin - https://drupal.org/user/2659881