Link image in xml editor

Author Message

Guy Brun

Wednesday 31 May 2006 12:39:49 am

I try to put an external link on an image using the XML editor. I have made an override for /content/view/embed.tpl

The template code for fetching the href is:
{section show=is_set($object_parameters.href)}
{set href=$object_parameters.href}
{section-else}
{set href=""}
{/section}

The output of {$object_parameters|attribute(show())} gives only

Attribute Type
align string
size string

Why is href missing? Anyone with same experience?

Thanks, GSB

Kirill Subbotin

Wednesday 31 May 2006 4:40:51 am

If this is a linked image, probably you should try $link_parameters.href

Guy Brun

Wednesday 31 May 2006 5:04:35 am

Yes, that did work :-)

Thanks
-GSB

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 01:23:12
Script start
Timing: Jan 19 2025 01:23:12
Module start 'layout'
Timing: Jan 19 2025 01:23:12
Module start 'content'
Timing: Jan 19 2025 01:23:13
Module end 'content'
Timing: Jan 19 2025 01:23:13
Script end

Main resources:

Total runtime1.1023 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.0055 589.1563152.6250
Module start 'layout' 0.00550.0034 741.781339.4453
Module start 'content' 0.00891.0919 781.2266469.6094
Module end 'content' 1.10080.0015 1,250.83598.1641
Script end 1.1023  1,259.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3022160.0002
Check MTime0.00140.1290160.0001
Mysql Total
Database connection0.00070.063010.0007
Mysqli_queries1.058596.0240570.0186
Looping result0.00050.0484550.0000
Template Total1.068796.920.5343
Template load0.00200.178820.0010
Template processing1.066796.768320.5333
Template load and register function0.00030.027510.0003
states
state_id_array0.00100.092010.0010
state_identifier_array0.00140.126620.0007
Override
Cache load0.00160.1443230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.072620.0004
Fetch class attribute name0.00090.085830.0003
XML
Image XML parsing0.00020.020920.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00060.0555100.0001
String conversion0.00000.000540.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs