Forums / Suggestions / Suggestion: Related objects

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.

eZ debug

Timing: Jan 18 2025 02:43:17
Script start
Timing: Jan 18 2025 02:43:17
Module start 'content'
Timing: Jan 18 2025 02:43:17
Module end 'content'
Timing: Jan 18 2025 02:43:17
Script end

Main resources:

Total runtime0.0198 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.7109180.8359
Module start 'content' 0.00730.0050 768.546993.8672
Module end 'content' 0.01220.0075 862.414170.7031
Script end 0.0197  933.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002311.8192120.0002
Check MTime0.00115.7232120.0001
Mysql Total
Database connection0.00094.368710.0009
Mysqli_queries0.003015.222040.0008
Looping result0.00000.121520.0000
Template Total0.007236.210.0072
Template load0.00104.812610.0010
Template processing0.006231.379910.0062
Override
Cache load0.00073.380010.0007
General
dbfile0.00178.8097100.0002
String conversion0.00000.030130.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs