Use your theme path as token to be converted as a full theme path. Helpful to render images, files from your theme folder.
Theme filter module will add an input filter which will convert the to string or a token type string.
This module also supports token module. so, you can use the token_filter module also.
Usage
1st way (without token_filter):
----------------------------------------
Select the text format for which you have enabled the filters, add this text to body part where You want
to use the theme path. Available tokens are
[theme:THEME_NAME]
[theme:THEME_NAME:absolute]
[path-to-theme]
[path-to-theme:absolute]
Example:
<img src="[theme:bootstrap]/screenshot.png" />
<img src="[theme:bootstrap:absolute]/screenshot.png" />
<img src="[path-to-theme]/screenshot.png" />
<img src="[path-to-theme:absolute]/screenshot.png" />
Token converts to:
<img src="/sites/all/themes/bootstrap/screenshot.png" />
<img src="http://sitename.com/sites/all/themes/bootstrap/screenshot.png" />
<img src="/sites/all/themes/bartik/screenshot.png" />
<img src="http://sitename.com/themes/bartik/screenshot.png" />
2nd way (with token_filter):
----------------------------------------
This module provides token to be used anywhere in the site with token module.
Here are the available tokens,
[theme-filter:theme:THEME_NAME]
[theme-filter:theme:THEME_NAME:absolute]
[theme-filter:path-to-theme]
[theme-filter:path-to-theme:absolute]
Drupal 8 Port is sponsored and supported by Axelerant
Axelerant is a digital technology and solutions partner—sharing the spark of social responsibility globally and fueled by a shared passion for open source. Our commitment to open source communities, development and innovation enable us to be a world leader in staff augmentation and support. For more information, visit Drupal Staff Augmentation.
Maintainers
This module is maintained by Mitesh Patel. Contributions are welcome. Please create an issue to discuss and patch.
Credit
MisterSpeed Thanks for the idea contribution
Suite6 D7 Development and support
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Administration Tools, Content Editing Experience, Content Display
- 141 sites report using this module
- Created by miteshmap on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 6 Jul 2016 at 20:22 UTC