Images

Author Message

Michael Zielinski

Monday 23 May 2005 12:36:36 am

Hi,
I am trying to show an image using the following code

<img class="left" src={$node.object.data_map.pasfoto.content.full_path} width="120" height="157" border="0" alt="" title="" />

but it does not work. No path is returned. What am I doing wrong?

thanks
Michael

Michael Zielinski

Monday 23 May 2005 1:02:33 am

NM

using

<img class="left" src="/{$node.data_map.pasfoto.content[original].full_path}" width="120" height="157" border="0" alt="" title="" />

solved the problem but I had to add the '/' befoer the path to make it absolute.

Michael

Marko Žmak

Monday 23 May 2005 3:02:14 am

Try using something like:

src={$node.data_map.pasfoto.content[original].full_path|ezurl}

With this you don't have to put '/' in front and it will work for any siteacces you want. Note that you can also use:

{attribute_view_gui attribute=$node.data_map.pasfoto}

And override the template for ezimage.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 19 2025 00:30:57
Script start
Timing: Jan 19 2025 00:30:57
Module start 'layout'
Timing: Jan 19 2025 00:30:57
Module start 'content'
Timing: Jan 19 2025 00:30:58
Module end 'content'
Timing: Jan 19 2025 00:30:58
Script end

Main resources:

Total runtime0.6088 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.7813152.6094
Module start 'layout' 0.00790.0033 740.390639.3984
Module start 'content' 0.01120.5960 779.7891538.1172
Module end 'content' 0.60710.0016 1,317.90638.2109
Script end 0.6088  1,326.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5833160.0002
Check MTime0.00140.2251160.0001
Mysql Total
Database connection0.00180.295210.0018
Mysqli_queries0.560692.0843570.0098
Looping result0.00060.0920550.0000
Template Total0.578695.020.2893
Template load0.00190.315620.0010
Template processing0.576794.726420.2883
Template load and register function0.00020.036010.0002
states
state_id_array0.00190.306310.0019
state_identifier_array0.00110.179920.0005
Override
Cache load0.00160.2676220.0001
Sytem overhead
Fetch class attribute can translate value0.00070.117820.0004
Fetch class attribute name0.00110.180440.0003
XML
Image XML parsing0.00070.109120.0003
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00090.1513180.0001
String conversion0.00000.002040.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
3content/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs