View Single Post
Old 04-10-2008, 06:00 AM  
jimb
Confirmed User
 
Join Date: Feb 2005
Location: Costa Rica
Posts: 2,514
Quote:
Originally Posted by k0nr4d View Post
Smarty in NATS has including disabled. {include file='page_footer.tpl'} will not work.
You need to use a smarty plugin. Hit up TheDoc, i wrote one for him some time ago.
Yeah your right,

Here's what someone would need to do if they wanted the custom plugin function:

Goto your nats/smarty-2.6.18/libs/plugins (or whatever version of smarty you have) and create a file called: function.fileinc.php then enter this into the file:

<?php
function smarty_function_fileinc($params)
{ include($params['file']); }
?>

After that file is created and the code inserted, you can use this smarty tag on any of the NATS Templates:
{fileinc file="path/to/file"}

Hope this helps everyone, and people in the future

Jim
jimb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote