Fullscreen
[Show/Hide Right Column]

Content Templates

Content templates are blocks of static HTML markup or wiki syntax and other text that can be applied as starting contents when creating such tiki objects as:
  • Wiki pages (HTML format or wiki format)
  • Articles or submissions
  • Newletters
To create or edit a content template, follow the "content templates" link from the admin section of the application menu. The screen will be as follows:

The process is to simply edit the template and save it; you can preview the template if you want.

Important: If editing an HTML page template the wiki syntax is OFF and features such as wiki references and others are not parsed. For HTML pages, only HTML code and {ed id=name} or {ted id=name} are allowed and parsed when previewing.


Once a template is created, editors will be able to apply it when editing an object of the type that the template has been specified for. If a content template is applied to a wiki page that already has content, the content template will be pasted in at the beginning of the page but won't overwrite the existing content.

Note however that for a template to be usable by editors, you need to activate the template feature, and label the template for use in particular objects. For example, if you want the template to be usable inside the wiki, you would do the following:

  • Admin > Wiki > Content template (check it)
  • Admin menu (on the left) > Content Templates
    • Locate the template you want to use in the wiki
    • Click on the pen icon in that row (in the Action column)
    • Beside Use in:, check the Wiki box.
    • Save

The content template that is applied to any particular page is a copy of the original. Once applied, the content template becomes part of the page and can be edited as freely as the rest of the wiki page. If the content template original changes, the pages that use the old version of the template are not changed.

The template has to be chosen each time a new page is created, there is no way to pick a different default entry than "none" (but there is a request for enhancement).

alias

Contributors to this page: Marc Laporte8178 points  , tobi_h144 points  , alain_desilets280 points  , Gary Cunningham-Lee1513 points  , TheDoc27 points  , sylvie7160 points  , Jean-Michel Juzan4 points  , StarRider1 points  and system .
Page last modified on Monday 15 August, 2011 20:58:14 UTC by Marc Laporte8178 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki