Page 1 of 1

Something unique to be used inside every entry?

Posted: Mon Sep 08, 2008 8:21 pm
by Mekk
I am editing entries.tpl. And I'd like to add something unique inside every entry. Sth like

<div id="box_343"></div>

where 343 is different for every entry. Entry id would be perfect, but from the docs it seems it is not available. Does there exist any alternative?

Re: Something unique to be used inside every entry?

Posted: Mon Sep 08, 2008 8:26 pm
by garvinhicking
Hi!

The ID should be available es {$entry.id}. It is only available within the main entries foreachloop, but at that place you should be able to easily add a wrapping <div>. Simply insert it after the second {foreach} loop.

HTH,
Garvin