Extended functions and parameters
Extenders are sets of extra parameters, functions, placeholders and filters that extend Ditto's functionality. Several extenders are installed by default with Ditto 2.1, including
- Summary - generate content for [+summary+] placeholder in blogs etc.
- Tagging - support for tags in blog posts, categories etc.
- Request - set Ditto parameters via URL (see also config files)
- DateFilter - filter by date in specified field
With sufficient knowledge of PHP and the inner workings of Ditto, and a good supply of wet towels to cool the brain, it is possible to create your own extender using the example file that is supplied with Ditto.
The &extenders parameter adds one or more extenders (names separated by commas) to your Ditto call. The tagging extender is added automatically when you use the &tagData parameter in a Ditto call.
Here's a Ditto call covering a set of documents that can have one or more of three tags (set by a checkbox template variable). Links to individual items and tagged sets of items are simple to create using the placeholders. (View template)
[[Ditto? &parents=`536` &tpl=`ditto.tagged` &extenders=`summary` &truncLen=`140` &truncOffset=`22` &tagData=`demoTags` &tagDocumentID=`535` ]]
Nunc ut metus ac elit aliquam bibendum. Nulla vestibulum condimentum ligula. In id sem. Praesent eros augue, feugiat nec, pharetra in, mollis ut, nibh.
Maecenas faucibus nisl quis dui. Maecenas nec leo. Cras sapien odio, viverra ac, dignissim sed, porttitor id, libero. Sed a tellus. Nunc in erat. Proin nulla.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis at felis. In hac habitasse platea dictumst.
Quisque consectetur, quam sit amet fringilla dapibus, justo urna sollicitudin risus, sed ornare ligula massa ac dui. Ut euismod mi vitae enim.
Aenean vitae justo vitae turpis pellentesque luctus. Donec eget urna vitae lacus suscipit imperdiet. Ut eu magna viverra enim placerat ultricies.
THIS IS THE INTROTEXT FIELD OF THIS ITEM (so no auto summary)
Nulla convallis risus a erat. Suspendisse orci tellus, blandit at, blandit vitae, pharetra sit amet, enim. Vestibulum cursus. Vestibulum iaculis accumsan lorem.
Aliquam quis quam. Mauris ornare sapien in risus. Donec dignissim massa sed ligula. Nullam leo nunc, scelerisque eu, fringilla vitae, adipiscing at, arcu.
Morbi a arcu. Donec imperdiet, erat at fermentum imperdiet, sapien dui porttitor tortor, et cursus justo turpis at nibh. Duis gravida quam in nibh.
Curabitur odio leo, aliquam vitae, porttitor quis, accumsan vel, ipsum.