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?

eZ debug

Timing: Jan 18 2025 11:13:55
Script start
Timing: Jan 18 2025 11:13:55
Module start 'content'
Timing: Jan 18 2025 11:13:56
Module end 'content'
Timing: Jan 18 2025 11:13:56
Script end

Main resources:

Total runtime0.7953 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.8281180.8359
Module start 'content' 0.00680.6586 769.6641669.4844
Module end 'content' 0.66540.1298 1,439.1484340.4375
Script end 0.7952  1,779.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5182210.0002
Check MTime0.00170.2092210.0001
Mysql Total
Database connection0.00090.110510.0009
Mysqli_queries0.716790.11802130.0034
Looping result0.00210.26942110.0000
Template Total0.761395.720.3806
Template load0.00240.301020.0012
Template processing0.758995.421520.3794
Template load and register function0.00020.025010.0002
states
state_id_array0.00110.140810.0011
state_identifier_array0.00110.140120.0006
Override
Cache load0.00200.2514370.0001
Sytem overhead
Fetch class attribute can translate value0.00120.156950.0002
Fetch class attribute name0.00130.1606100.0001
XML
Image XML parsing0.00140.182250.0003
class_abstraction
Instantiating content class attribute0.00000.0024100.0000
General
dbfile0.00220.2705350.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs