64 Posts
Topy
6 years ago
3
Topic

Hello,

I have template override and i want to display banner after 3 items in list. Can anyone guide me how to do this ? With foreach on whole html code?

For example i have this code: 

<div> <a href="/<?php echo $cck->getLink('art_title'); ?>"><img src="/<?php echo $cck->getThumb1('image_intro'); ?>" style="margin:0 auto; display:block;"></a> </div>

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
2
Level 1

You can't override list templates, you can only create a new one based on the one of the default ones.

64 Posts
Topy
6 years ago
1
Level 2

No... i have position override to seb_one, mainbody.

4229 Posts
Kadministrator
6 years ago
0
Level 3

yes, but that only gives you control over a single item, you don't know whether it is 1st, 2nd etc.. 

Get a Book for SEBLOD