problem with image link

Author Message

christian bencivenni

Saturday 29 December 2007 1:00:33 am

Hi to you all.
I have a problem with a banner link.
I use a banner class image in my page and i want that it link to an external page.
I use in the template this code:

<a href="{$banner.object.data_map.url.content}">{attribute_view_gui attribute=$banner.object.data_map.image image_class='original'}</a>

but when I see the page in the browser the link is something like:

http://www.mydomain.com/index.php/www.bannerlink.com

Why?

André R.

Saturday 29 December 2007 8:12:07 am

I'ts becuase you have forgot to type http:// in yor url so your browser thinks it is a relative url.

You can try to fix it with exturl, but I have never used it and it's not documented so I have no idea if it does what I think it does..
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/urls/exturl

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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