Creating Content Templates
- From the Admin menu, select Settings > Content templates. The Admin templates page appears.
Tip
You can also access the Admin: Templates page by typing http://www.yourdomain.com/tiki-admin_content_templates.php in your web browser. - Select the Create tab
- Name: Enter the name of the template. Your users will see (and select) the template based on this name, so make it useful.
- Use in Wiki: Select this option to make this template available for wiki pages.
Note
Only features for which you enabled the use of Content Templates will be listed. Right now, only the Wiki can use templates. - Template: Using wiki syntax, create a default page that will become the template. For example:
!Enter the Page Title Here
''Enter the page description here, in italic''
{maketoc}
!!Secondary Heading
Tip
The {maketoc} is a special wiki plugin that will automatically create a table of contents based on the headings used on the page. There are several options that you can include to control the formatting, depth, and title of the list. Refer to the Tiki Documentation for complete details. This plugin is similar to the {toc} used in Wiki Structures. - Click Preview to review the template. Continuing editing the template and click Save when you're done.
Tiki saves the template and adds it to the list of available templates:
You can repeat this procedure to create a new template for the articles (or use this same template for both features). Be sure to first enable the Template option on the Administration: Articles page.
Note
The maketoc built-in plugin can actually take parameters to make your page look nicer. See the Tiki docs page for more info.