Forums / Setup & design / Ability to have specific user groups within a siteaccess

Ability to have specific user groups within a siteaccess

Author Message

michael durand

Thursday 04 May 2006 3:48:55 am

Hello!

I am new to eZ system and have a question I couldn't find answered in the documentation or in the forums.

My goal:
I would like to set up a CMS website for a university. Each teacher should have a separate website, that should be accessible by its students. Furthermore, the teacher should be able to create subgroups of students that may have a restricted access to some sections of the website. These subgroups should be specific to the website and not be shared with the other websites.

What I understand so far:
From what I read, I understand that multiple websites can be installed on a same eZ publish installation using "siteaccesses". I understand also that these "siteaccesses" share the same database.

What is not clear to me is this:
Can a teacher be designated as an editor only for its website (basically, can I restrict a siteaccess admin interface so that only one part of the document tree is displayed? Do I have to use sections to do that or is there any other way to do this?)? Also, I would like a teacher to be able to create subgroups of users, but those subgroups should be tied to a siteaccess. Is that possible?

Any answer would be kindly appreciated!

Thanks a lot,
Michael Durand

Mark Marsiglio

Thursday 04 May 2006 4:58:47 am

Multiple websites can be installed and share the same database. The most common reason for doing this that I know of is to use a different design templates for the same data. We use this feature when installing redesigns that use new templates.

Any editor can be given edit priviliges with a subtree limitation. This means that you create a role (teacher) that has edit priviliges, and assign those priviliges with a limitation based on the parent folder/object. So, assign that role to a user/group, and pick the starting page from which they can edit. They will only be able to edit content under that page in the tree.

Your role can limit the viewing of pages in the same way, so you can restrict what users can see in either the admin or the public site.

We stopped using sections for assigning roles a while ago, but it does work fine. It seems to add an extra step for this purpose (creating and assigning a section) when the subtree limitation works better. Sections are great for using unique designs for different parts of the site, though, and if you have already implemented it, then using it for permissions is not an extra step.

Similarly, you should be able to allow teachers to create a subgroup of users, and add users to it (just an extension of the roles and permissions). In my experience though, this may be beyond the skill set of an average CMS user. I would expect that some manual configuration at the start of each semester may be necessary. Also, you may be able to pre-make the groups, and for teachers to add users would be easy. As long as the roles are assigned, it should be fine.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

michael durand

Thursday 04 May 2006 8:01:01 am

Hi Mark,

Thanks a lot for this explanation, it is quite clear.

Best regards,
Michael Durand

eZ debug

Timing: Jan 31 2025 09:33:52
Script start
Timing: Jan 31 2025 09:33:52
Module start 'content'
Timing: Jan 31 2025 09:33:52
Module end 'content'
Timing: Jan 31 2025 09:33:52
Script end

Main resources:

Total runtime0.2124 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.1875180.7969
Module start 'content' 0.00710.0058 768.984497.9766
Module end 'content' 0.01290.1994 866.9609527.9219
Script end 0.2123  1,394.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00391.8392200.0002
Check MTime0.00160.7551200.0001
Mysql Total
Database connection0.00070.349310.0007
Mysqli_queries0.165177.72341410.0012
Looping result0.00110.54111390.0000
Template Total0.199093.710.1990
Template load0.00090.439810.0009
Template processing0.198093.226710.1980
Override
Cache load0.00060.297610.0006
Sytem overhead
Fetch class attribute can translate value0.00090.415310.0009
XML
Image XML parsing0.00020.111610.0002
General
dbfile0.00653.0496200.0003
String conversion0.00000.002730.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
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