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.