Thank you, this works with a little correction.
Do you think is correct?
NOT WORKING
{foreach from=$entries item="dategroup" name="outerloop"}
{foreach from=$dategroup.entries item="entry" name="innerloop"}
{if $startpage && $smarty.innerloop.first && $smarty.outerloop.first}
<div class ...
Search found 2 matches
- Tue Mar 09, 2010 3:13 pm
- Forum: Themes
- Topic: Add code only after first entry (how?)
- Replies: 4
- Views: 5412
- Tue Mar 09, 2010 1:37 pm
- Forum: Themes
- Topic: Add code only after first entry (how?)
- Replies: 4
- Views: 5412
Add code only after first entry (how?)
I think this is pretty simple (but not for me ;) )
I need to add a custom code just after the first entry in the blog homepage (not the first entry of every page).
Like this
POST1
[custom code]
----------------------
POST2
----------------------
POST3
----------------------
---page2----
POST1 ...
I need to add a custom code just after the first entry in the blog homepage (not the first entry of every page).
Like this
POST1
[custom code]
----------------------
POST2
----------------------
POST3
----------------------
---page2----
POST1 ...