Retrieve url data and image path

Author Message

Daniel Guerrier

Saturday 23 April 2005 12:35:00 pm

Hi

I have a content class with an image and url field.
I want to pull out the actual url in the url field and the absolute path to the image to use an xml file.

The attribute_view_gui creates and displays an href and creates an image tag. How do I pull out the urls.

Thanks

Saturday 23 April 2005 2:16:41 pm

Hi,

Maybe this is what you're after:

{$node.data_map.image.content[original].url

You could also try

{$node.data_map.image|attribute(show)}

Daniel Guerrier

Saturday 23 April 2005 3:09:04 pm

Great, that works for the image field.
But how do I get the url from the url field?

Daniel Guerrier

Saturday 23 April 2005 3:46:32 pm

Solved.

Thanks for the help the previous answer help solve this one. :)

Sunday 24 April 2005 11:19:35 pm

No problem :)

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 09:02:40
Script start
Timing: Jan 19 2025 09:02:40
Module start 'layout'
Timing: Jan 19 2025 09:02:40
Module start 'content'
Timing: Jan 19 2025 09:02:41
Module end 'content'
Timing: Jan 19 2025 09:02:41
Script end

Main resources:

Total runtime0.7694 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.1797152.6250
Module start 'layout' 0.00730.0042 741.804739.4453
Module start 'content' 0.01150.7563 781.2500520.0000
Module end 'content' 0.76780.0016 1,301.250012.1563
Script end 0.7694  1,313.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4554160.0002
Check MTime0.00140.1771160.0001
Mysql Total
Database connection0.00240.311310.0024
Mysqli_queries0.713392.7071630.0113
Looping result0.00060.0826610.0000
Template Total0.729094.820.3645
Template load0.00250.325820.0013
Template processing0.726594.425620.3633
Template load and register function0.00020.022710.0002
states
state_id_array0.00380.493110.0038
state_identifier_array0.00110.148620.0006
Override
Cache load0.00210.2733240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.094420.0004
Fetch class attribute name0.00130.169960.0002
XML
Image XML parsing0.00240.309020.0012
class_abstraction
Instantiating content class attribute0.00000.002870.0000
General
dbfile0.00340.4432160.0002
String conversion0.00000.001240.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs