displaying images

Author Message

risto CMS user

Friday 25 November 2005 12:35:44 am

I have this:

{section show=$node.object.data_map.image.content}
     {attribute_view_gui attribute=$node.object.data_map.image}
{/section}

my problem is that it includes the name of the file and a link to the image object. How do i remove this?

risto CMS user

Friday 25 November 2005 3:45:48 am

forget it. I got it. :-)

Nathan Kelly

Friday 25 November 2005 3:57:33 am

Hey risto, just for the sake of others who may have a similar issue it never hurts to tell how you solved this problem, you might save someone else the trouble of posting the same question. ;)

Cheers!

Pardon me while I burst into flames...

risto CMS user

Friday 25 November 2005 4:52:27 am

Nathan you are right. So this was my solution

I was referancing the image object and not the image it self.

this is how i referanced the image:

{attribute_view_gui attribute=$node.object.data_map.image.content.data_map.image}

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:08:50
Script start
Timing: Jan 19 2025 00:08:50
Module start 'layout'
Timing: Jan 19 2025 00:08:50
Module start 'content'
Timing: Jan 19 2025 00:08:52
Module end 'content'
Timing: Jan 19 2025 00:08:52
Script end

Main resources:

Total runtime1.4122 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.8125152.6094
Module start 'layout' 0.00660.0037 740.421939.4141
Module start 'content' 0.01031.4003 779.8359547.2656
Module end 'content' 1.41060.0015 1,327.101612.5000
Script end 1.4121  1,339.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00810.5770160.0005
Check MTime0.00140.0962160.0001
Mysql Total
Database connection0.00130.090910.0013
Mysqli_queries1.343095.1050600.0224
Looping result0.00060.0399580.0000
Template Total1.371297.120.6856
Template load0.01160.824820.0058
Template processing1.359596.274920.6798
Template load and register function0.00010.007910.0001
states
state_id_array0.00120.083810.0012
state_identifier_array0.00180.129020.0009
Override
Cache load0.01130.8013200.0006
Sytem overhead
Fetch class attribute can translate value0.00040.030320.0002
Fetch class attribute name0.00130.093460.0002
XML
Image XML parsing0.00260.180920.0013
class_abstraction
Instantiating content class attribute0.00000.001480.0000
General
dbfile0.00250.1767220.0001
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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs