display images without having them as related objects

Author Message

francis Nart

Thursday 02 March 2006 1:34:48 am

Hi,

We've got a problem with image insertion using the OE. In an XML field, each inserted image is treated as a related object.. Pb is that when displaying i.e a column with related objects suche as other articles, files...the images inserted in the xml field do appears as well there...That is silly. Do you know a way of avoiding that ?

Sergiy Pushchin

Thursday 02 March 2006 2:22:07 pm

Basicaly this is not possible.. but I can give you some suggestions..
The main purpose of the "normal" related objects is to have possibility to use them in the XML fields, so this is not "silly" from my point of view. To achieve your goal I guess you should use for related content special datatype objectrelationlist type. And then when you want to display a column of related content you should fetch list of these objects from an attribute..

Regards,
SP

francis Nart

Thursday 02 March 2006 11:14:30 pm

thnaks for that reply Sergiy,

We'll try that one !

Francis.

Xavier Dutoit

Friday 03 March 2006 5:59:54 am

You can use this extension to "filter" the embedded images on your list of related objects.

http://ez.no/community/contribs/template_plugins/getobjects_extension

http://www.sydesy.com

Xavier Dutoit

Friday 03 March 2006 6:00:46 am

@Sergiy

So basically, yes, that's possible ;)

X+

http://www.sydesy.com

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 30 2025 22:26:25
Script start
Timing: Jan 30 2025 22:26:25
Module start 'layout'
Timing: Jan 30 2025 22:26:25
Module start 'content'
Timing: Jan 30 2025 22:26:26
Module end 'content'
Timing: Jan 30 2025 22:26:26
Script end

Main resources:

Total runtime1.3138 sec
Peak memory usage8,192.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.3750151.2422
Module start 'layout' 0.00460.0037 739.6172220.7500
Module start 'content' 0.00831.3045 960.36724,501.8516
Module end 'content' 1.31280.0010 5,462.218811.7969
Script end 1.3138  5,474.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2695160.0002
Check MTime0.00130.0982160.0001
Mysql Total
Database connection0.00060.045810.0006
Mysqli_queries1.214892.4659650.0187
Looping result0.00060.0486630.0000
Template Total1.251295.220.6256
Template load0.00190.141520.0009
Template processing1.249395.089220.6247
Template load and register function0.00170.129310.0017
states
state_id_array0.00180.138710.0018
state_identifier_array0.00210.162320.0011
Override
Cache load0.00150.1168240.0001
Sytem overhead
Fetch class attribute can translate value0.00200.153830.0007
Fetch class attribute name0.00260.201670.0004
XML
Image XML parsing0.00360.270630.0012
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00490.3747220.0002
String conversion0.00000.000640.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs