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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 21 2025 17:04:49
Script start
Timing: Jan 21 2025 17:04:49
Module start 'layout'
Timing: Jan 21 2025 17:04:49
Module start 'content'
Timing: Jan 21 2025 17:04:49
Module end 'content'
Timing: Jan 21 2025 17:04:49
Script end

Main resources:

Total runtime0.0185 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 591.7891151.2422
Module start 'layout' 0.00480.0029 743.031336.7109
Module start 'content' 0.00770.0091 779.742294.2188
Module end 'content' 0.01680.0017 873.960933.9922
Script end 0.0185  907.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.4368140.0002
Check MTime0.00136.8145140.0001
Mysql Total
Database connection0.00063.469010.0006
Mysqli_queries0.002312.575630.0008
Looping result0.00000.096510.0000
Template Total0.00126.610.0012
Template load0.00094.909610.0009
Template processing0.00031.672110.0003
Override
Cache load0.00063.323610.0006
General
dbfile0.002312.665680.0003
String conversion0.00000.047640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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