How to display banners in contents using phpAdsNew

Author Message

Geraud Schmit

Wednesday 02 November 2005 3:53:27 pm

Hi,

I think I have read all the post talking about banners, ezpublish and phpAdsNew. And I didn't find an answer to my question.

I am using phpAdsNew (with remote invocation code) to display banners in my ezpublish sites. I include the code in my templates and everything works fine so far.

Now, I would like to include banners in my contents (not in the template) because it is too static (I mean : the banner always shows up at the same place which is in general before the content or after the content).

For example, if I publish an article which is quite long, i would like to add a banner anywhere in the middle of the text (using an embed xml tag may be).

Is it possible ? How could I do this ?

Thanks
Geraud

Bruce Morrison

Wednesday 02 November 2005 6:39:31 pm

Hi Geraud

I think you will need to define a custom tag and place the remote invocation code in the template for the custom tag.

See http://ez.no/products/ez_publish_cms/documentation/customization/components/datatypes/ezxmltext/custom_tags for info on custom tags

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Ekkehard Dörre

Thursday 03 November 2005 12:55:28 am

Hi,

Bruce's way or you can place the template operator in e.g. article.tpl between intro and body so you have the banner after the teaser and you can choose the keyword banner function in phpAdsNew and keywords in template operator.

Advantage: You can change the banner via phpadsnew centrally and not in old articles.

Greetings, ekke

Extension phpadsnew ( PubSVN ):
http://ez.no/community/forum/developer/phpadsnew_extension

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Geraud Schmit

Thursday 03 November 2005 3:43:12 pm

Thanks Bruce & Ekke,

I am going to dig into Bruce's solution I think.
Because it is a very flexible one and it can be used without modifying any template.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.