Download the PHP package belniakmedia/craft-excerptify without Composer
On this page you can find all versions of the php package belniakmedia/craft-excerptify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download belniakmedia/craft-excerptify
More information about belniakmedia/craft-excerptify
Files in belniakmedia/craft-excerptify
Download belniakmedia/craft-excerptify
More information about belniakmedia/craft-excerptify
Files in belniakmedia/craft-excerptify
Vendor belniakmedia
Package craft-excerptify
Short Description Provides the excerptify twig filter which truncates the provided variable's text or html to the nearest whole word based on the provided character length.
License MIT
Package craft-excerptify
Short Description Provides the excerptify twig filter which truncates the provided variable's text or html to the nearest whole word based on the provided character length.
License MIT
Please rate this library. Is it a good library?
Informations about the package craft-excerptify
Excerptify Plugin for CMS 3.x
Provides the excertify
twig filter which truncates the provided variable's text or html to the nearest whole word based on the provided character length.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
$characterCount | Int | 200 | Number of characters to limit result to. |
$forceBreakWord | Bool | false | When false, the text will be broken at the last occurring word break character. When true it will return the text up to the exact character limit, breaking a word if necessary. |
Usage Examples
Break at nearest word
This is the default as in the same sas passing no arguments. Will return full words and the resulting string will not exceed 200 characters.
To break exactly at the specified character count, even mid word, pass true for the forceBreakWord parameter:
Brought to you by Belniak Media Inc.
All versions of craft-excerptify with dependencies
PHP Build Version
Package Version
The package belniakmedia/craft-excerptify contains the following files
Loading the files please wait ....