Image problem

Author Message

Kjell Inge Sandvik

Sunday 15 May 2005 1:53:39 am

Okey, this has to be a easy one for those who is not as tired as I am :-)

How do I show a image from an article?

Sandvik Web & Data

Kjell Inge Sandvik

Sunday 15 May 2005 5:03:17 am

This is my code:

{let kart=fetch(content,node,hash(node_id,$node.node_id))}
{attribute_view_gui image_class=medium attribute=$kart:item.data_map.image.content.data_map.image}
{/let}

... but no pic is shown...

Sandvik Web & Data

Trond Hjelmaas

Monday 16 May 2005 12:25:32 pm

would this work?

{attribute_view_gui image_class=medium attribute=$:kart.data_map.image}

or try this:

{attribute_view_gui image_class=medium attribute=$:kart.object.data_map.image}

notice that ":" change posistion.

Werner Klausen

Wednesday 25 May 2005 6:04:57 am

You've probably figured this out, however as I just had the same problem I'll post the solution.

The problem is to understand the structure and dig deep enough as far as I've understood :)

{attribute_view_gui attribute=$__SECTIONNAME__:item.data_map.image.content.current.data_map.pic}

Because I can!

Fabricio Guerrero

Thursday 16 February 2006 4:36:58 am

Why is this??

can somebody explain to me why there are so many different ways to show images and not all work at a given time.??

we just moved over a site from one sever to another and the images wouldn't show.. i had to recode all the places where images showed to a different syntax...

why is this :( ???

is there one way that will always work??? this is just not too friendly..

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

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 18:33:51
Script start
Timing: Jan 18 2025 18:33:51
Module start 'layout'
Timing: Jan 18 2025 18:33:51
Module start 'content'
Timing: Jan 18 2025 18:33:52
Module end 'content'
Timing: Jan 18 2025 18:33:52
Script end

Main resources:

Total runtime0.8807 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.9219152.6094
Module start 'layout' 0.00660.0032 741.531339.4141
Module start 'content' 0.00980.8692 780.9453633.0391
Module end 'content' 0.87910.0016 1,413.984412.1953
Script end 0.8806  1,426.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3848160.0002
Check MTime0.00140.1609160.0001
Mysql Total
Database connection0.00090.100410.0009
Mysqli_queries0.816492.6970670.0122
Looping result0.00080.0882650.0000
Template Total0.842995.720.4214
Template load0.00230.255820.0011
Template processing0.840695.448120.4203
Template load and register function0.00010.011910.0001
states
state_id_array0.00100.114710.0010
state_identifier_array0.00080.091720.0004
Override
Cache load0.00190.2163290.0001
Sytem overhead
Fetch class attribute can translate value0.00080.094940.0002
Fetch class attribute name0.00120.138080.0002
XML
Image XML parsing0.00200.225940.0005
class_abstraction
Instantiating content class attribute0.00000.001790.0000
General
dbfile0.00120.1409250.0000
String conversion0.00000.000940.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs