[3.8] multiupload and Object relations

Author Message

stephane couzinier

Thursday 15 June 2006 3:22:03 am

I have create new class Diaporama with 2 attributs

- title (text)
- Object relations of image.

I try to use multiplefileupload (extension from Patrizio Bekerle ).
This extension upload file in the Sub items section.
I want to link the upload file with the Object relations of my class.
I know the part of code to change but I don't know the ez functions.

Tank's for your help.

if you know a good technical documentation, give me a link.

 

Xavier Dutoit

Thursday 15 June 2006 6:22:21 am

Salut,

1) I'd suggest to put the images under the diaporama instead as related objects.

2) Have a look at the code of the eor, it contains code to add relations:

http://ez.no/community/contribs/datatypes/enhanced_objectrelation

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 31 2025 04:33:54
Script start
Timing: Jan 31 2025 04:33:54
Module start 'layout'
Timing: Jan 31 2025 04:33:54
Module start 'content'
Timing: Jan 31 2025 04:33:55
Module end 'content'
Timing: Jan 31 2025 04:33:55
Script end

Main resources:

Total runtime1.1775 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.0050 588.1563151.2109
Module start 'layout' 0.00500.0017 739.367236.6484
Module start 'content' 0.00671.1700 776.0156916.7109
Module end 'content' 1.17670.0008 1,692.72667.8438
Script end 1.1775  1,700.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2513160.0002
Check MTime0.00130.1072160.0001
Mysql Total
Database connection0.00080.065210.0008
Mysqli_queries1.130496.0025540.0209
Looping result0.00050.0406520.0000
Template Total1.142697.020.5713
Template load0.00210.175620.0010
Template processing1.140596.860120.5703
Template load and register function0.00150.125910.0015
states
state_id_array0.00240.203010.0024
state_identifier_array0.00180.151820.0009
Override
Cache load0.00170.1419200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.049320.0003
Fetch class attribute name0.00200.166930.0007
XML
Image XML parsing0.00060.052620.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00170.1469160.0001
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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs