Page 1 of 1
how to include a new .tpl file in index.tlp?
Posted: Mon Jul 11, 2005 6:07 pm
by kernel
i want to add a new .tpl file such as entrylist.tpl to list all my entries ,how i include it in index.tpl? i simply add a {$ENTRYLIST} as {$CONTENT} to index.tpl but it dosnt work,now what should i do?
Re: how to include a new .tpl file in index.tlp?
Posted: Mon Jul 11, 2005 10:14 pm
by garvinhicking
Those shortcuts only work because Serendipity makes ->assign('CONTENT', 'content.tpl') assignments in the PHP code.
If only using smarty you need to use {include}, please see
http://smarty.php.net/manual/en/languag ... nclude.php
Have fun,
Garvin
Posted: Tue Jul 12, 2005 6:38 am
by kernel
that would be useful to me, thanks
