solved Timeline listing

infinityssm
infinityssm
@makande
7 years ago
53 posts
Hi,

Is it possible to inject content within a timeline list. For example, I would like to add an ad or a "who to follow" row after every four or five timeline listing. How can I accomplish this?

Thanks
updated by @makande: 06/16/17 02:36:14PM
brian
@brian
7 years ago
10,148 posts
infinityssm:
Hi,

Is it possible to inject content within a timeline list. For example, I would like to add an ad or a "who to follow" row after every four or five timeline listing. How can I accomplish this?

Thanks

This would require customization of the jrAction/templates/item_list.tpl file - you would just need to insert the ads ever X number (using a Smarty {math} call with modulus).

This is going to be more work than can be covered in a forum post, so you'll need to work with it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
7 years ago
7,746 posts
a modulus looks like this:
{foreach $_items  => $item}
        {if $item@first || ($item@iteration % 4) == 1}
         THIS IS FIRING ON EVERY 4TH ITERATION.
        {/if}
........

updated by @michael: 03/17/17 09:16:06PM
infinityssm
infinityssm
@makande
7 years ago
53 posts
Thanks Brian and Michael,

This is perfect, works great.