Ditto Summary extender

The Summary extender (&extenders=`summary`) creates an abbreviated version of document content to act as a "summary" or "teaser" in the Ditto output list, with a "Read more" link to the full stories. The extender works together with the [+summary+] and [+link+] placeholders in your template.

If possible, use the introtext field to create intros to your items, rather than the summary extender, for better editorial quality, more flexibility in the main content and less processing burden. But if you must...

The summary text is set by one of several methods (listed in order of precedence):

You can switch truncation off with &trunc=`0` (default value is `1`), and switch truncation at the splitter off with &truncSplit=`0`. The text for the [+link+] placeholder is set by &truncText, default being `Read more...` (or equivalent in the relevant language file). You can set the code for the link using &tplTrunc to point to a chunk, file or code string of your own.


(view template)

[[Ditto? &parents=`551` &extenders=`summary` &truncLen=`140` &tpl=`ditto.summary` &orderBy=`id ASC` ]]

Curabitur fermentum ITEM 589 (no intro, no split marker)

Curabitur fermentum aliquet dolor. Ut mi. Etiam ligula ligula, tempor a, pellentesque at, hendrerit sagittis, orci. Mauris rhoncus est a nunc.

Read more...

Cras velit. ITEM 590 Intro AND split after "diam."

Cras velit. Integer luctus. In nec nisl adipiscing erat tincidunt fringilla. Suspendisse suscipit feugiat diam.
Read more...

Vestibulum nisi. ITEM 591 No intro, split after "nulla" (longer than trunc length)

Vestibulum nisi. Aenean feugiat mauris fringilla ligula. Maecenas lectus nisl, facilisis et, laoreet sed, rutrum vitae, velit. Phasellus consectetur magna non neque. Aenean sit amet sem sed nibh dapibus consectetur. Praesent pulvinar adipiscing justo. Pellentesque turpis risus, bibendum sed, pulvinar sed, molestie vitae, magna. Morbi bibendum metus ac arcu. Morbi consectetur turpis. Maecenas commodo justo quis nulla.
Read more...

In nec ITEM 592 (Every sentence a paragraph)

In nec risus vitae erat varius egestas.

Ut et orci et metus feugiat condimentum.

Integer vel orci.

Ut propinquester pod oknom elit.

Read more...