Loading...
 
Skip to main content

Tiki Design


Templates

posts: 1

How to create templates in tikiwiki6?

--Revathi

posts: 2

Was there a reply to this? I've tried to look at templates and cannot find how to create templates and reference/use them. The documentaiton page (http://doc.tiki.org/Content+Template&structure=Documentation+TOC) gives directions that don't exist, afaik, in the latest wiki, so I'm lost.

Help!


posts: 254 Japan

There could be some confusion because the word "templates" means a few different things in Tiki. One is content templates, which are pasted into wiki pages when the same page content is needed more than once. Another kind of template is the .tpl files that are Smarty (template engine) templates that are used along with .php files to create the Tiki pages. Also, "templates" is also another word for theme or skin, for an alternative visual appearance. Which kind of template do you mean? If you mean theme, then this site has some guidelines. See Tiki Transforming.

-- Gary

posts: 2

Thanks for that link Gary.

The link I put up talks about how to assign a .tpl (I think) to a page or to an area of a page, but I cannot find the functionality within the admin area. The reusable content templates sounds like a form of boilerplate, which I don't need, but I do need a part of the page formatted in a particular way, however that part is included/set up.

The overall theme I am using is one of the standard themes, and I am, in general, happy with it.


posts: 254 Japan

Normally, .tpl files aren't needed or used to add to a page or area of a page. What functionality do you need? You can use the Look and Feel custom code textareas to add HTML or wiki syntax, or maybe a module can be used. These methods are better than a new .tpl file because they don't need extra files.

-- Gary