Takes a textarea field and substitutes in a class value for specific tags.
<perch:content id="additionalDescHTML" html filter="setclass" setclass="list-marked" settag="ul" />
- Download the latest version
- Place the
MontlewisTemplateFilter_SetClass.class.phpin the folderperch/addons/templates/filters/ - Include the class in the file
perch/addons/templates/filters.php:
include('filters/MontlewisTemplateFilter_SetClass.class');You need to enable template filters in your config file perch/config/config.php:
define('PERCH_TEMPLATE_FILTERS', true);<perch:content id="additionalDescHTML" html filter="setclass" setclass="list-marked" settag="ul" />| Attribute | Description |
|---|---|
| settag | The tags in the textarea field that will be set to a class |
| setclass | The class that will be set to the tags. |