Varying templates according to item position
The &tpl parameter specifies the general template for Ditto output. You can also use special templates for items in certain positions:
- &tplFirst - applied to first item in the list
- &tplLast - applied to last item in the list
- &tplAlt - applied to every other item in the list
- &tplCurrentDocument - applied to item corresponding to the page currently being displayed. (For example, if you use Ditto to display a menu of items in a sidebar, and want to highlight the one currently selected)
[[Ditto? &parents=`455` &tpl=`ditto.title.date` &tplAlt=`ditto.title.date.other` &display=`6` ]]
Praesent ac ITEM 468 ligula. Nam risus tortor,
13-Dec-03 12:30
Cras velit. ITEM 467 Integer luctus. In nec
06-Dec-03 06:03
In eu ITEM 466 purus eu mi sollicitudin
06-Sep-03 20:22
Pellentesque habitant ITEM 465 morbi tristique senectus et
26-Jul-03 15:24
Nulla commodo. ITEM 464 Praesent feugiat, dui sit
01-Jun-03 19:07
Duis tristique ITEM 463 urna id metus. Maecenas
28-Mar-03 14:02