PDA

View Full Version : CMS- Insert code between articles in home page - any help?


inigo
02-08-2012, 07:03 AM
I would like to insert ad code between articles in main content in the home page.

So, for example, tell the CMS that after article preview 1, 4 and 8 insert adsense code.

Any help where and how has this to be done?

The preview will be something like this (CMS Home page):

HEADER
PREVIEW ARTICLE 1
<code inserted>
PREVIEW ARTICLE 2
PREVIEW ARTICLE 3
PREVIEW ARTICLE 4
<code inserted>
PREVIEW ARTICLE 5
PREVIEW ARTICLE 6
PREVIEW ARTICLE 7
PREVIEW ARTICLE 8
<code inserted>
PREVIEW ARTICLE 9
PREVIEW ARTICLE 10

So i would like to know which is the template to edit and the contitional to tell,

after preview_articles (1,4,8) insert <this adsense code>

Thanks !!!

inigo
02-09-2012, 01:48 PM
any idea?

Thx!!!

Lynne
02-09-2012, 04:00 PM
The previews are spit out in template vbcms_content_article_preview so perhaps you can add something to the bottom of that.

inigo
02-10-2012, 05:33 AM
Yes, thanks, I have tried this, but the problem is how to say that I want that code only after article_preview 1,5,9,...

At the moment it shows in all article_previews, i need a condition to show only after the article_preview positions I want.

Thanks for your response!

inigo
06-13-2012, 07:52 AM
any idea?

Lynne
06-13-2012, 03:21 PM
I really don't know without digging into the code more.