| |||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rating: | Display Modes |
(#1)
|
| Member Posts: 69 Join Date: Sep 2007 | Call display() in each template? -
24-04-2009, 12:25 PM
We want to make our templates more versatile/manageable, so I was thinking about basically moving each template into a file-based template and calling this in each template: <?php $this->display('thetemplatefile.tpl'); die(); ?> Would doing this cause any problems? Create powerful online surveys with ease in minutes! Sign up for your FREE account today! Follow us on Twitter |
| | |
(#2)
|
| Senior Member Posts: 5,244 Join Date: Aug 2006 Location: Mumbai, India |
25-04-2009, 08:16 AM
Not all templates in Kayako are .tpl's. Infact all the templates of the client front end are stored in the database.
Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support Our Skins and Services - http://www.supportskins.com/store/ - NEW SKIN ADDED!! SupportSkins.com - http://www.supportskins.com/ |
| | |
(#3)
|
| Operations Manager Posts: 7,361 Join Date: Jan 2006 Location: England, UK |
25-04-2009, 10:58 AM
The templates stored in the database are rendered by the same engine that renders the .tpl files
-------------------------------------------------------------------
|
| | |
(#4)
|
| Member Posts: 69 Join Date: Sep 2007 |
25-04-2009, 01:34 PM
I've gone ahead and added the display() call to all the templates and it works great so far. It does have some dynamic to it so we can rapidly duplicate template groups, but the next issue I will have to look into is templates that are used without invoking the front-end interface (going through index.php)
Create powerful online surveys with ease in minutes! Sign up for your FREE account today! Follow us on Twitter |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Template Groups - A Tutorial | Matthew | How do I? | 9 | 03-02-2010 04:40 PM |
| Free Internal vs Display Names for Departments | Matthew | Modifications & Extensions | 2 | 01-08-2009 02:40 PM |
| Display message body in a template | Evert | Requests | 6 | 20-02-2009 05:58 PM |