craft-plugin envvaluereplace
Adds the 'envValueReplace' twig filter to Craft CMS projects
composedcreative/envvaluereplace
Adds the 'envValueReplace' twig filter to Craft CMS projects
- Thursday, June 2, 2016
- by mike27cubes
- Repository
- 3 Watchers
- 0 Stars
- 13 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
Environment Value Replacement Twig filter for Craft CMS
Installation
composer require composed/envvaluereplace
, (*1)
Example
Add the following to either the general or per-environment config/general.php
values, (*2)
'envValueReplacements' => [
'search for' => 'replace with'
]
Then use in your template code, (*3)
{% set test = "this string contains the search for value" %}
{{ test|envValueReplace }}
This example will output this string contains the replace with value
, (*4)
Roadmap
- Improve documentation (eg chained replacement example)
dev-develop
dev-develop
Adds the 'envValueReplace' twig filter to Craft CMS projects
Sources
Download
GPL-3.0
The Requires
dev-master
9999999-dev
Adds the 'envValueReplace' twig filter to Craft CMS projects
Sources
Download
GPL-3.0
The Requires
0.1.0
0.1.0.0
Adds the 'envValueReplace' twig filter to Craft CMS projects
Sources
Download
GPL-3.0
The Requires