Forums / Setup & design / limits on object relations?

limits on object relations?

Author Message

Ben Pirt

Friday 18 July 2003 3:31:50 am

OK, I'm now quite enjoying setting up EZPublish and realising just how powerful it is and having set up a basic site, i'm now trying to do something a little more complex.

Simplified, what I have is a set of objects for users and a set of objects for projects. What I want to do is set up a relationship between the an individual project and the users such that when the editor adds a new project, they can assign users in a nice easy way from those in the database.

I had a suspicion that this is what the object relation is for and it would seem to work, but as this is all new to me, I was just wanting to check that this was the right way of going about things.

It would be nice to limit the choice of objects to those of a particular class, but again I'm not sure if this is possible. They could use the object locator in the object relation datatype, but then they could add any class and I do tend to like to make things foolproof :-)

Anyway, any ideas from anybody would be much appreciated,

All the best,

Ben Pirt

Bjørn Kaarstein

Friday 18 July 2003 4:08:52 am

I think you might accomplish what you wan't here, by assigning roles to your users. Combine these roles with sections, and you should be able to control the rights pretty good.

Say the editors is allowed to read/create/edit/delete certain classes and sections, and another group of users are given other rights.

If you use object relation, and just give restrictive rights to your editors/users, they wan't be able to add anything you don't allow.

All this is done in your admin interface.

Regards Bjørn

Ben Pirt

Saturday 19 July 2003 1:19:59 am

OK, object relations it is then, is there a way of having a relation with more than one object (without adding more than one object relation field in the class)? I have heard of the Object Relation List datatype - is this the thing to use? I tried installing it into my 3.1 installation, but it gave php errors.
Any ideas?

Ben Pirt

Paul Borgermans

Sunday 20 July 2003 4:17:08 am

Back-porting the object relation list to 3.1 is non-trivial, there are some changes in the kernel too.

But yes, that's the thing to use .. from 3.2 onwards.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Ben Pirt

Monday 21 July 2003 5:33:20 am

Is 3.2 available/usable yet?
Is it wise to install it?

Ben Pirt

Tuesday 22 July 2003 3:33:04 am

anyone?

Bård Farstad

Tuesday 22 July 2003 3:35:23 am

Ben, you can install eZ publish 3.2 for testing and development. You should not run production code on it unless you've done extensive testing of the features you use.

--bård

Documentation: http://ez.no/doc

Ben Pirt

Tuesday 22 July 2003 3:37:30 am

OK, thanks for the speedy response :-)

where do I download it from? CVS?