Ditto Tagging extender

The tagging extender is automatically included when you use the &tagData parameter to indicate a field that contains tag data. You can filter the display according to tags, or display associated tags along with the Ditto output list.

&tagData will usually name a template variable such as a checkbox or radio set, or a plain text input. The default delimiter between tags is a space. You may find it easier to set &tagDelimiter=`,` or use some other character, so that you can use the Delimited List widget to set the separator (which doesn't let you use a space). In the output, the appearance of the delimiter is set with &tagDisplayDelimiter=`, ` if you'd like a space after the commas.

Tags are displayed in the [+tagLinks+] placeholder as a set of links. When you click on a link, the filtered list is displayed in the document with the ID set by &tagDocumentID, or in the current document if no target is set. The target document needs its own Ditto call, specifying the same document set as &parents or &documents, and the same &tagData field and &tagDelimiter, if set.

The &tags parameter filters the display according to tags, e.g. &tags=`arts` shows only items tagged "Arts". (Tag matching is only case-sensitive if &caseSensitive=`1`). The same effect can be gained via the URL query string, e.g. www.example.com/mynews.html?tags=science.

[!Ditto? &parents=`506` &tagData=`newsCats` &tagDelimiter=`,` &tagDisplayDelimiter=`, ` &tpl=`ditto.tagged` &tagSort=`0` &tagDocumentID=`671` !]

Quisque consectetur, ITEM 511 quam sit amet fringilla

01-May-07

Lunar probe lands on Mars, blames GPS

Duis tristique ITEM 512 urna id metus. Maecenas

04-Jun-08 ,

PM paints self-portrait, then burns it

In eu ITEM 513 purus eu mi sollicitudin

04-Jun-08

World leaders decide: it's ice-cream for dessert

Nam nunc ITEM 514 magna, aliquet in, sagittis

08-Jul-08

Berkshire brass bands hailed as best in the world

Aenean vitae ITEM 510 justo vitae turpis pellentesque

04-Jun-08

Lab technician discovers water boils at 100C