From 4d7cd00e534b73efb525ddb6cbd15ae7f4113c51 Mon Sep 17 00:00:00 2001 From: Hussein Al Hammad Date: Tue, 31 Jul 2018 18:35:14 +0400 Subject: [PATCH] Update readme --- readme.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 15647be..59228a6 100644 --- a/readme.md +++ b/readme.md @@ -1,12 +1,33 @@ # Linebreak Template Filter -The template filter adds inserts HTML line breaks `
` before new lines in a `textarea` field type. +The [template filter](https://docs.grabaperch.com/api/template-filters/) inserts HTML line breaks `
` before new lines in a `textarea` field type. + + +## Installation + +- Download the latest version of the template filter +- Unzip the download +- Place the `PipitTemplateFilter_linebreak.class.php` file in the folder `perch/addons/templates/filters/` +- Include the class in the file `perch/addons/templates/filters.php`: + +```php +include('filters/PipitTemplateFilter_linebreak.class.php'); +``` + +You also need to enable template filters in your config: + +```php +define('PERCH_TEMPLATE_FILTERS', true); +``` + ## Usage ```markup - +

+ +

```