smarty template variable reference
Posted: Sat Jul 15, 2006 8:53 pm
Hi, i tried to add a list of links to the latest 5 blogentries in ten index.tpl and used following code:
anyways, when i click one of the entries, so that i see its comments, i also only see 1 entry in my list (where i expected 5 entries).
how can i solve this and is there a kind of reference of variables i can use for the smarty templating engine?
thanks in advance
UPDATE: ok i already found the reference
- but i still can't solve the broblem
UPDATE2: i found the "Aktuelle Einträge" plugin - seems to do exactly what i need
Azzy
Code: Select all
{foreach from=$entries item="dategroup"}
{foreach from=$dategroup.entries item="entry"}
<div class="serendipity_Entry_Date">
<h3 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h3>
<a href="{$entry.link}">{$entry.title|@default:$entry.body|truncate:40:" ..."}</a> {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
</div>
{/foreach}
{/foreach}
how can i solve this and is there a kind of reference of variables i can use for the smarty templating engine?
thanks in advance
UPDATE: ok i already found the reference
UPDATE2: i found the "Aktuelle Einträge" plugin - seems to do exactly what i need
Azzy