Page 1 of 1
Server Side Includes (SSI)
Posted: Mon Apr 16, 2007 10:11 pm
by grickaby
(My apologies if this has been answered, just spent 45 minutes trying to find an answer this question...)
Can you use SSI in the template manager or in a content block or anywhere for that matter?
Just to test, I pasted: into the template manager AND built a global content block and entered it into the source mode in FCKeditor. No luck with either try.
IIS 6
PHP 4.4.6
MySQL 5.037
CMS 1.04
Help!
-Greg
Re: Server Side Includes (SSI)
Posted: Mon Apr 16, 2007 11:25 pm
by Nullig
If you have the following in your config.php file:
Code: Select all
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = true;
then you can use:
Nullig
Re: Server Side Includes (SSI)
Posted: Mon Apr 16, 2007 11:32 pm
by Dee
Try
Code: Select all
global $gCms;
include $gCms->config['root_path'] . DIRECTORY_SEPARATOR . 'filename.php';
in a
UDT.
Regards,
D
Re: Server Side Includes (SSI)
Posted: Tue Apr 17, 2007 1:04 pm
by grickaby
This was most helpful, thank you!
-Greg
Re: Server Side Includes (SSI)
Posted: Fri Jul 06, 2007 2:11 am
by joters
Dee wrote:
Try
Code: Select all
global $gCms;
include $gCms->config['root_path'] . DIRECTORY_SEPARATOR . 'filename.php';
in a
UDT.
Regards,
D
Hi,
Insert into my tpl:
Code: Select all
global $gCms;
include $gCms->config['root_path'] . DIRECTORY_SEPARATOR . 'filename.php';
..and print screen code

Re: Server Side Includes (SSI)
Posted: Fri Jul 06, 2007 1:43 pm
by Pierre M.
Yes, it was said "in a
UDT".
Then, you can use the UDT in your templates.
Pierre M.