Adding an image with the OE but not as a related object

Author Message

francis Nart

Monday 07 November 2005 8:23:27 am

How is it possible to add content to an XML field (for example an image) using the OE without this content (here an image) being added as a related object ?
The problem is we'd like to use a column where related objects are displayed on a template. The problem is that using th OE to add an image make that image a "related object" so it would appear twice :
- in the XML field displaying the image
- in the column as a link to the image object which is silly !

Any clue ?

Ɓukasz Serwatka

Wednesday 09 November 2005 12:33:57 am

Hi Francis,

Which version of eZ publish do you use?

If you know image object id you just paste to your XML filed code:

<embed href='ezobject://69' />

Images you can upload to Media.

This will work for eZ publish 3.6 and higher

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime1.3971 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.3984152.6563
Module start 'layout' 0.00490.0030 742.054739.5078
Module start 'content' 0.00791.3877 781.5625526.1797
Module end 'content' 1.39560.0014 1,307.74228.1094
Script end 1.3970  1,315.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2258160.0002
Check MTime0.00130.0913160.0001
Mysql Total
Database connection0.00070.053510.0007
Mysqli_queries1.351796.7560540.0250
Looping result0.00080.0541520.0000
Template Total1.362797.520.6813
Template load0.00210.148020.0010
Template processing1.360697.388320.6803
Template load and register function0.00020.017510.0002
states
state_id_array0.00170.124010.0017
state_identifier_array0.00120.088420.0006
Override
Cache load0.00170.1216160.0001
Sytem overhead
Fetch class attribute can translate value0.00100.073020.0005
Fetch class attribute name0.00090.062130.0003
XML
Image XML parsing0.00080.058620.0004
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00260.1832180.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/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: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs