(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
Server Side Includes (SSI)
Re: Server Side Includes (SSI)
If you have the following in your config.php file:
then you can use:
Nullig
Code: Select all
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = true;
Code: Select all
{php}
//code you want
{/php}
Re: Server Side Includes (SSI)
Try
in a UDT.
Regards,
D
Code: Select all
global $gCms;
include $gCms->config['root_path'] . DIRECTORY_SEPARATOR . 'filename.php';Regards,
D
-
joters
Re: Server Side Includes (SSI)
Dee wrote: Tryin a UDT.Code: Select all
global $gCms; include $gCms->config['root_path'] . DIRECTORY_SEPARATOR . 'filename.php';
Regards,
D
Hi,
Insert into my tpl:
Code: Select all
global $gCms;
include $gCms->config['root_path'] . DIRECTORY_SEPARATOR . 'filename.php';-
Pierre M.

