Templates Posted by revathi8990 on Mon 24 of Jan, 2011 09:53 GMT-0000 posts: 1 How to create templates in tikiwiki6? --Revathi
Posted by Halfbat on Sun 03 of Apr, 2011 16:01 GMT-0000 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!
Posted by Gary Cunningham-Lee on Mon 04 of Apr, 2011 01:55 GMT-0000 posts: 254 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
Posted by Halfbat on Mon 04 of Apr, 2011 11:58 GMT-0000 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.
Posted by Gary Cunningham-Lee on Sun 10 of Apr, 2011 10:38 GMT-0000 posts: 254 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