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.

eZ debug

Timing: Jan 18 2025 19:34:27
Script start
Timing: Jan 18 2025 19:34:27
Module start 'layout'
Timing: Jan 18 2025 19:34:27
Module start 'content'
Timing: Jan 18 2025 19:34:28
Module end 'content'
Timing: Jan 18 2025 19:34:28
Script end

Main resources:

Total runtime1.1449 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9063152.6250
Module start 'layout' 0.00670.0026 740.531339.4453
Module start 'content' 0.00931.1336 779.9766525.9609
Module end 'content' 1.14290.0020 1,305.93758.1719
Script end 1.1449  1,314.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2804160.0002
Check MTime0.00140.1181160.0001
Mysql Total
Database connection0.00090.074610.0009
Mysqli_queries1.102396.2795540.0204
Looping result0.00050.0449520.0000
Template Total1.115997.520.5579
Template load0.00210.182520.0010
Template processing1.113897.280420.5569
Template load and register function0.00020.015210.0002
states
state_id_array0.00080.071210.0008
state_identifier_array0.00170.146620.0008
Override
Cache load0.00170.1473160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.057020.0003
Fetch class attribute name0.00100.091730.0003
XML
Image XML parsing0.00070.063220.0004
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0711170.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs