how to include a new .tpl file in index.tlp?
how to include a new .tpl file in index.tlp?
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?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: how to include a new .tpl file in index.tlp?
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
If only using smarty you need to use {include}, please see http://smarty.php.net/manual/en/languag ... nclude.php
Have fun,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/