Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
mukesh Offline
New Member
 
Posts: 4
Join Date: Sep 2006
Location: USA
Including an external file in a template - 30-09-2006, 04:51 AM

Has anyone successfully "included" a file in one of the SupportSuite templates? I have tried but not been able to get it to work.

The syntax I used (based on Smarty Light code and docs) was:
<{ include file = "filename" }>

For filename, I tried relative path, absolute path, virtual path etc - nothing
worked.

Any ideas?

Thanks in advance,

Mukesh
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,956
Join Date: Aug 2006
Location: Mumbai, India
30-09-2006, 07:47 AM

Use the actual php include statement and it should work.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
mukesh Offline
New Member
 
Posts: 4
Join Date: Sep 2006
Location: USA
30-09-2006, 08:12 PM

Thanks for the prompt reply, supporskins. Can you give me an example line of code that you have used or tried? I only ask because I did try it with the <{php}> and <{/php}> functions too but that isn't supported (function not found).

Are you suggesting I just do something like?
include("filename");

Please let me know what you have actually gotten to work because I have indeed tried many experiments with 3.00.98 and 3.04.00.

Also there is one more issue which could be confusing my experiments - which directory is the filename path relative to? Does anyone know? I tried putting the included file in the supportsuite directory, SmartyLight directory, SmartyLight/templates directory -- none of them worked.

Thanks,

Mukesh
   
Reply With Quote
  (#4) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,956
Join Date: Aug 2006
Location: Mumbai, India
30-09-2006, 11:02 PM

Yes I am suggesting you use the actual PHP code
Code:
<?php include("filename"); ?>
It should work. The software is designed to support PHP codes in the templates. You just need to make sure you have set the include_path correctly in your php.ini.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#5) Old
mukesh Offline
New Member
 
Posts: 4
Join Date: Sep 2006
Location: USA
Smile 01-10-2006, 12:57 AM

Hi Supportskins,

You da man! (er... or woman, if that is the case ).

That sure solved my problem. I was going down the track of looking for SmaryLight syntax with the <{php}> function and the <{include}> function, both of which didn't seem to work, and I forgot that like a normal web page, the HTML could just have the <?php include> directive. It worked like a charm.

For the info of anyone else referring to this thread, the relative path path here is with respect to the supportsuite installation directory.

Thanks again, supportskins.

Cheers,

Mukesh
   
Reply With Quote
Reply

Tags
external, template

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
problem ! graziano68 SupportSuite, eSupport and LiveResponse 2 08-11-2006 08:07 AM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


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