Hello,
how can i show a Google Adsense Banner only after the first entry on the indexpage?
I need help
Thanks, Harald
Adsense only after the first entry?
-
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am
-
- Regular
- Posts: 1531
- Joined: Tue Mar 07, 2006 11:25 pm
- Location: Berlin, Germany
- Contact:
-
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am
-
- Regular
- Posts: 1531
- Joined: Tue Mar 07, 2006 11:25 pm
- Location: Berlin, Germany
- Contact:
hm
???
Code: Select all
<code>
{foreach name="dategroup" from=$dategroup.entries item="entry"}
</code>
Now we need to ask if we're on the first entry of the group (the first loop). That's as simple as checking the "first" attribute of our foreach, like this:
{if $smarty.foreach.dategroup.first}
code for the banner
{/if}
Ciao, Stephan
-
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am