Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
rbncha Offline
New Member
 
Posts: 8
Join Date: Sep 2008
including template inside template. - 27-11-2008, 09:49 AM

How can I include a template file in side a template ? I went through the forum and some people suggested to use <?php include 'filename.php'?> . However, this doesn't solve my problem. How can I use the <{themepath}> variable in filename.php to point the theme directory then ? It is not converted into theme path by including filename.php with php include. <{ include file='filename.php'}> didn't work.



The hierarchy is something like this:
index.php
-> includes db template file
-> includes filename.php template file
-> filename.php has <{$themepath}> (which is not being converted into path)

I hope I have not duplicated any previous treads as this is slightly different scenario. I have to use a <{$themepath}> inside included file. Or, if there is any way to use or point my file version themes to use instead of database.

Last edited by rbncha; 27-11-2008 at 09:51 AM.
   
Reply With Quote
  (#2) Old
bubble Offline
Member
 
Posts: 144
Join Date: Apr 2004
27-11-2008, 03:59 PM

kayako esupoprt are using smarty lite so can't include php files


Quote:
Originally Posted by rbncha View Post
How can I include a template file in side a template ? I went through the forum and some people suggested to use <?php include 'filename.php'?> . However, this doesn't solve my problem. How can I use the <{themepath}> variable in filename.php to point the theme directory then ? It is not converted into theme path by including filename.php with php include. <{ include file='filename.php'}> didn't work.



The hierarchy is something like this:
index.php
-> includes db template file
-> includes filename.php template file
-> filename.php has <{$themepath}> (which is not being converted into path)

I hope I have not duplicated any previous treads as this is slightly different scenario. I have to use a <{$themepath}> inside included file. Or, if there is any way to use or point my file version themes to use instead of database.


--
bubble
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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
including a file inside template nolageek Style & Design 7 01-10-2008 05:51 PM
Loginshare and Template Groups Emma SupportSuite, eSupport and LiveResponse 2 01-07-2008 10:18 AM
Including Customer /User Group name in email template anur How do I? 1 11-06-2008 08:39 PM
Including an external file in a template mukesh SupportSuite, eSupport and LiveResponse 4 30-09-2006 11:57 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78