how to include a new .tpl file in index.tlp?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
kernel
Posts: 2
Joined: Mon Jul 11, 2005 5:52 pm

how to include a new .tpl file in index.tlp?

Post 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?
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?

Post 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
# 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/
kernel
Posts: 2
Joined: Mon Jul 11, 2005 5:52 pm

Post by kernel »

that would be useful to me, thanks :D
Post Reply