Storing templates in files

The &tpl parameter can link to files instead of chunks, which makes it easier to update a template with an HTML editor. To do this, give the name of the template file preceded by @FILE: as the template parameter.

A complete file path is required, but you can use [(base_path)] to obtain the root of your site.

[[Ditto? &modId=`6` &parents=`455` &tpl=`@FILE:[(base_path)]assets/snippets/ditto/external.html` &display=`4` ]]

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


You can also provide HTML template code as a parameter, by preceding it with @CODE:. This probably makes more sense in the context of &config files than as part of a Ditto call in a document.