3.2 -> Data map and images, problem with the full path returned...

Author Message

laurent le cadet

Wednesday 12 November 2003 7:44:02 am

Hi,

I'm trying to print a node with a specific view, so I have to use the data map for the attributes I want.

The template :

{let derniere=fetch( content, tree, hash(
parent_node_id, 104,
limit, 1,
sort_by, array( array( published ) ),
class_filter_type, include,
class_filter_array, array( 8 ) ) ) }
{section name=Un loop=$derniere}
{$Un:item.data_map.titre.content}
<img src="{$Un:item.data_map.photo.content[small].full_path}">
{/section}
{/let}

For the title (attribute="titre") it's ok but with the image (attribute="photo") I have the very full path :

http://www.editions-telegramme.com/index.php/content/view/full/53/var/storage/variations/image/p/h/p/phpgh1bHR_100x100_428.jpg

It works when I'm in the index page but not in other section.

I tried also with "|ezimage" but no way.

How can I manage to remove this part "content/view/full/53/" for all the site ?

Laurent.

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 22:32:00
Script start
Timing: Jan 18 2025 22:32:00
Module start 'layout'
Timing: Jan 18 2025 22:32:00
Module start 'content'
Timing: Jan 18 2025 22:32:01
Module end 'content'
Timing: Jan 18 2025 22:32:01
Script end

Main resources:

Total runtime0.9231 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.1719152.6563
Module start 'layout' 0.00420.0034 740.828139.5078
Module start 'content' 0.00760.9139 780.3359440.5625
Module end 'content' 0.92150.0016 1,220.89848.0938
Script end 0.9230  1,228.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3402160.0002
Check MTime0.00130.1423160.0001
Mysql Total
Database connection0.00060.062210.0006
Mysqli_queries0.872794.5381460.0190
Looping result0.00060.0609440.0000
Template Total0.890396.420.4451
Template load0.00220.242620.0011
Template processing0.888096.200820.4440
Template load and register function0.00020.019110.0002
states
state_id_array0.00100.112410.0010
state_identifier_array0.00210.229420.0011
Override
Cache load0.00180.1952240.0001
Sytem overhead
Fetch class attribute can translate value0.00080.082210.0008
Fetch class attribute name0.00070.071620.0003
XML
Image XML parsing0.00050.049510.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00100.1126160.0001
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs