Skip to content

Takes a textarea field and substitutes in a class value for specific tags.

Notifications You must be signed in to change notification settings

montlewis/MontlewisTemplateFilter_SetClass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

MontlewisTemplateFilter_SetClass

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" />

installation

  • Download the latest version
  • Place the MontlewisTemplateFilter_SetClass.class.php in the folder perch/addons/templates/filters/
  • Include the class in the file perch/addons/templates/filters.php:
include('filters/MontlewisTemplateFilter_SetClass.class');

Configuration

Enable template filters

You need to enable template filters in your config file perch/config/config.php:

define('PERCH_TEMPLATE_FILTERS', true);

Usage

<perch:content id="additionalDescHTML" html filter="setclass" setclass="list-marked" settag="ul" />

Tag Attributes

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.

About

Takes a textarea field and substitutes in a class value for specific tags.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages