Forums / Setup & design / Organizing content, restricted and not restricted

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.

eZ debug

Timing: Jan 18 2025 22:27:52
Script start
Timing: Jan 18 2025 22:27:52
Module start 'content'
Timing: Jan 18 2025 22:27:53
Module end 'content'
Timing: Jan 18 2025 22:27:53
Script end

Main resources:

Total runtime1.0923 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0147 587.8594180.8125
Module start 'content' 0.01470.9680 768.6719540.7734
Module end 'content' 0.98270.1096 1,309.4453336.7422
Script end 1.0923  1,646.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3726210.0002
Check MTime0.00150.1349210.0001
Mysql Total
Database connection0.00060.056510.0006
Mysqli_queries1.025093.83581940.0053
Looping result0.00170.15651920.0000
Template Total1.043495.520.5217
Template load0.00190.174320.0010
Template processing1.041595.343320.5207
Template load and register function0.00020.017510.0002
states
state_id_array0.00130.115110.0013
state_identifier_array0.00150.134320.0007
Override
Cache load0.00160.1435300.0001
Sytem overhead
Fetch class attribute can translate value0.00160.151030.0005
Fetch class attribute name0.00110.102640.0003
XML
Image XML parsing0.00080.073730.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00220.1991270.0001
String conversion0.00000.000930.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs