Suggestion: Related objects

Author Message

Daniel Staver

Monday 18 August 2003 10:20:56 am

I would like to be able to specify the relations allowed for a class better than what is possible today.

Example:
I'd like to create a relation for the class Project to the node Employees. When editing a new Project the relation would then fetch all the Employees from that node and present them as a multi-selectbox where the user could select one or more related employees to a project.

Theoretically this is already possible through today's related object functionality, but it's too open, as the user can relate to any type of object he has read access to. It's also easier for the user to directly be able to select the employees from a list rather than having to navigate through the whole node tree to find the right object.

This would also simplify template creation as it would be much easier to create a separate display for related employees as opposed to other types of related objects.

Suggested selection methods:
- Checkbox
- Radio buttons
- Drop-down list
- Multiselect box

Suggested relation filters:
- Class
- Section
- Node
- Subtree (subtree would only make sense for drop-down list and multi-selectbox I think)

It would be nice to be able to specify the sorting medthod for a relation as well.

Daniel Staver
http://daniel.staver.no

Kai Duebbert

Tuesday 26 August 2003 12:42:59 am

It is already possible to do everything of what you suggest through template programming. (See e.g. http://ez.no/developer/ez_publish_3/forum/developer/select_field_for_object_relation )

It would be nice to have these features directly in the datatype though.

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 18 2025 04:59:08
Script start
Timing: Jan 18 2025 04:59:08
Module start 'layout'
Timing: Jan 18 2025 04:59:08
Module start 'content'
Timing: Jan 18 2025 04:59:08
Module end 'content'
Timing: Jan 18 2025 04:59:08
Script end

Main resources:

Total runtime0.4094 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.0059 589.0313152.6250
Module start 'layout' 0.00590.0029 741.656339.4453
Module start 'content' 0.00870.3983 781.1016524.3828
Module end 'content' 0.40700.0024 1,305.48448.1641
Script end 0.4094  1,313.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.8087160.0002
Check MTime0.00140.3454160.0001
Mysql Total
Database connection0.00110.266210.0011
Mysqli_queries0.365089.1567540.0068
Looping result0.00050.1176520.0000
Template Total0.382393.420.1911
Template load0.00210.513620.0011
Template processing0.380292.850020.1901
Template load and register function0.00010.022710.0001
states
state_id_array0.00060.152210.0006
state_identifier_array0.00100.250620.0005
Override
Cache load0.00170.4163230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.164920.0003
Fetch class attribute name0.00130.306330.0004
XML
Image XML parsing0.00060.138420.0003
class_abstraction
Instantiating content class attribute0.00000.001530.0000
General
dbfile0.00070.1723160.0000
String conversion0.00000.002240.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs