Organizing content, restricted and not restricted

Author Message

Tore Skobba

Thursday 09 October 2003 8:51:46 am

Hello all

I am new with EZ and I am currently setting up an site for an Norwegian School program. This requires me to seperate content between several different user groups, and now I wonder how to best implement this functionality. My content is simplified defined as this:

Content for all
Content for all students
Content for students studying in Singapore
Content for students studying in Boston

Students studying in Boston should only be allowed to gain access to content for Boston students and all students, and NOT access for Singapore content, and vica. versa.

Currently I am thinking about the following solution:

All content is based on content classes which are either available for all or only logged in users (restricted content). Typically I am using the following naming conventions: news_all_folder, news_restricted_folder, this is to easily allow the anonymous users (i.e. all) to get access to all none restricted material, this as I set their user role to be "read content (all classes available to all").

However, all restricted content is not to be available for all logged in user, i.e different users should get access to different restricted content based on their roles and user groups, this is to be implemented with roles to various subtrees. Does this sounds like a good way to solve it? I am having doubts about using one access solution to seperate between none and restricted content, then using another solution for sepereating restricted content.

Hope someone can give some advices on this.

Secondly should I use the predefined EZ content classes (article) or should I make my own in order to make future upgrades of Ez easier?

cheers
Tore

Alex Jones

Thursday 09 October 2003 9:02:49 am

Tore, I believe the ideal solution for this case would be to use Sections to separate your content. If you create a section for each of the four categories above you could easily assign access rights to each.

So, if you create two roles; one for students in Singapore and one for students in Boston you would assign both of them access rights to 'Content for all' and 'Content for al students', as well as access to the section that directly applies to them. This way you don't have to create new content classes based on their roles.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Tore Skobba

Thursday 09 October 2003 9:16:08 am

Hmm I thought section was for larger differences, such as layout etc. I am thinking about the users clicking an "News" folder. This folder then opens up into:

News for anonymous
News for all students
News for Singapore students
etc.

However the site and most of the content is to be similar for all users, the only difference is that the various logged in user have access to more specific content in some folders(typically burowed down in the site).

Thanks for comment Alex. I will look a bit more into sections, it might be the solution.

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 19 2025 01:00:28
Script start
Timing: Jan 19 2025 01:00:28
Module start 'layout'
Timing: Jan 19 2025 01:00:28
Module start 'content'
Timing: Jan 19 2025 01:00:29
Module end 'content'
Timing: Jan 19 2025 01:00:29
Script end

Main resources:

Total runtime0.7377 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.3047152.6406
Module start 'layout' 0.00710.0114 741.945339.4766
Module start 'content' 0.01850.7177 781.4219535.6797
Module end 'content' 0.73620.0014 1,317.101612.1250
Script end 0.7376  1,329.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4935160.0002
Check MTime0.00130.1786160.0001
Mysql Total
Database connection0.00090.123110.0009
Mysqli_queries0.669690.7709570.0117
Looping result0.00050.0730550.0000
Template Total0.688793.420.3443
Template load0.00270.372220.0014
Template processing0.685992.984720.3430
Template load and register function0.00020.028310.0002
states
state_id_array0.00040.054710.0004
state_identifier_array0.00080.109120.0004
Override
Cache load0.00230.3071300.0001
Sytem overhead
Fetch class attribute can translate value0.00090.125620.0005
Fetch class attribute name0.00180.244640.0005
XML
Image XML parsing0.00060.086520.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00741.0017160.0005
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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

Time used to render debug report: 0.0001 secs