Filling object relation attribute automatically?

Author Message

Andrew Vorobyov

Wednesday 26 July 2006 5:27:16 am

I renewed my relationship with EZ this month. Great system.

I have classes "bucket" and "vegitables". Users create "bucket" and afterwards create "vegitables" inside their "buckets".

The question is:

How to make sure user creates vegitables ONLY inside his own "bucket" and how to link "bucket" to specific user.

I tried this with Object relation attribute, but during creation of each object it show "pick object" dialog and it's very nasty.

How (on which step) can I automatically set object relations?

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 06:06:30
Script start
Timing: Jan 31 2025 06:06:30
Module start 'layout'
Timing: Jan 31 2025 06:06:30
Module start 'content'
Timing: Jan 31 2025 06:06:32
Module end 'content'
Timing: Jan 31 2025 06:06:32
Script end

Main resources:

Total runtime1.1464 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.2734151.2266
Module start 'layout' 0.00620.0037 739.500036.6953
Module start 'content' 0.00991.1355 776.1953822.1875
Module end 'content' 1.14540.0009 1,598.38287.8125
Script end 1.1463  1,606.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2926160.0002
Check MTime0.00130.1154160.0001
Mysql Total
Database connection0.00140.118510.0014
Mysqli_queries1.102996.2077460.0240
Looping result0.00040.0325440.0000
Template Total1.105396.420.5526
Template load0.00240.209820.0012
Template processing1.102896.202220.5514
Template load and register function0.00130.109910.0013
states
state_id_array0.00190.167210.0019
state_identifier_array0.00150.133320.0008
Override
Cache load0.00180.156790.0002
Sytem overhead
Fetch class attribute can translate value0.00120.102310.0012
Fetch class attribute name0.00170.147510.0017
XML
Image XML parsing0.00020.020110.0002
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00240.2118100.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs