PDA

View Full Version : first post vbcms


pelican
08-02-2012, 11:03 PM
how can i insert ads only at 1st article of every cms page.

something like insert ads at 1st post of the thread.

what condition code should i use at the vbcms_page template ?

thanks.

pelican
08-06-2012, 05:22 AM
any help?

Lynne
08-06-2012, 04:15 PM
You should be able to add it to the vbcms_content_article_page template. That is the template that shows the article and then the list of comments.

pelican
08-07-2012, 02:03 PM
You should be able to add it to the vbcms_content_article_page template. That is the template that shows the article and then the list of comments.

thanks. but i am not sure what condition to use in that template to only show ads after 1st article post.

Eg.

-- cms 1st article of the page --
-- ads --
-- cms 2nd article of the page --
-- cms 3rd article of the page --
-- cms 4th article of the page --
.
.
.

Lynne
08-07-2012, 04:15 PM
Oh, I was thinking you wanted it on the article page, not on the section page. The section page would be template vbcms_content_article_preview, for the individual previews, but I think if you are listing them in one column, then it is template vbcms_content_section_type1 that spits them out. If you look in that, you can see this:
<vb:if condition="$id != 1"> cms_separator</vb:if>
So, it looks like you can use a condition based on the id to add something there - if $id == 1, then add ads.