Editing Templates
You can easily edit the templates that define the look-and-feel of your Tiki.
Note
Don't confuse these Tiki/Smarty templates (TPL files) with your content templates (that is, pre-defined Wiki, Article, or HTML pages). See Configuring Content Templates for details.
Tip
Need more information? See "Modifying Templates" in Tiki Essentials for additional details.
- On the Customization tab of the Administration: Look & Feel page, enable the Edit Templates and View Templates options.
File not found.
- Click Save. Tiki Saves the information and reloads the page.
- In the Editing area, click Edit templates. Tiki lists all of the Smarty templates.
File not found.
- Select a template to edit.
File not found.
Tip
If you decide to customize your template files, you should create your own theme instead of changing an existing theme's template files. This will make future Tiki upgrades easier — you don't want to overwrite your customizations each time you upgrade! See "Getting Started on a New Theme" in the Tiki Themes website for details.
Using Tiki's Template Editor
Warning
Do not use Tiki's template editor to edit header.tpl or any other template file that includes JavaScript. For security, the Tiki template editor will remove all JavaScript from the template files (this is to ensure that a hacker does not inject malicious scripts into your site.
If you accidentally select a file that includes a script element, do not save the template.
To edit a template that uses ja
- FTP the template file from your web server to your PC.
- Edit the template file using a text editor.
- FTP the edited template to your web server.
Do you remember the registration page that you completed when creating a new user? You can update the page's template to include a custom message for you website.
Tip
Use the Smarty template usage indicator option to determin which template to edit. See Modifying Templates in Tiki Essentials for more information.
- On the Edit template page, find the tiki-register.tpl file and click the link. Tiki opens the file for editing.
- Directly before the <br /> code, type:
<p>Thanks for registering at my site. I hope you find it useful.</p>
- Click save only in the theme: tikineat. Tiki saves the information and reloads the page.
Note
If you are using a different theme, its name will appear.
Tip
To facilitate internationalization and translation, you should enclose your text in {tr} ... {/tr} tags. Refer to the Tiki documentation for more information.
Note
Tiki pages should validate as XHTML 1.0. If you include any markup codes in your templates, be sure it validates correctly. You can use the W3C Validator to check your code.
Warning
If you include Smarty coding in you templates, it must validate properly, or your pages will not display.
Now log off as the admin and register as a new user. Your custom message is included in the registration page.