Forums / Setup & design / Making an invisible partition of a site

Making an invisible partition of a site

Author Message

Krischan Hauschkez

Friday 20 October 2006 6:28:13 am

Hi!

I'm building my first EZ-site now. And I have a little problem:

When I want to make a node and its children invisible to all anonymous users, how do I do that? Is there something like a step-by-step-tutorial for the role management somewhere? I doubt that this will be my last question in this field of interest...

Thanks,
Krischan

Mark Marsiglio

Friday 20 October 2006 6:40:50 am

I would suggest using sections to accomplish your goal. If you create a new section called "secure" in the setup/sections area, then apply that section to the node you want to hide, it will prevent anonymous users from seeing it or any of its children.

The next step would be to create a new role that allows some users to see the content. Add a new role that allows the content/read policy for the new section (secure). Then assign the new role to a new user group, and any user who logs in as a member of that group will be able to see the secure section after login .

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

Krischan Hauschkez

Friday 20 October 2006 8:49:31 am

Sounds like what I need. But can't I do it the other way round? I created a section and now I thought it would be simplert to tell just one group (anonymous user) that they are *not* allowed to view. But everybody else is per default.

Do you understand what I mean?

Claudia Kosny

Friday 20 October 2006 3:37:39 pm

Hi Krischan

As far as I know this is not possible (yet). You can only allow something, forbidding something is not possible. Although it would certainly be a nice feature.

Claudia

Marco Zinn

Sunday 22 October 2006 8:31:44 am

Hi,
the permission system of ezpublish only works with "positive rules", that is, each new role is empty (which means, you cannot do anything with it) and you will have to add "allow-this"-policys for that role.

If you want to hide parts of your content (a subtree) from everyone, just create a new section and assign it to that subtree. Thus, only the users with the "Administrator" role will have access to it.
Quick links:
http://ez.no/doc/ez_publish/user_manual/3_8/the_administration_interface/the_user_accounts_tab/roles_and_policies
http://ez.no/doc/ez_publish/user_manual/3_8/daily_tasks/managing_sections

Using sections, you can create (or edit) roles to allow access (for example: read-only) to that new section.

If you want to hide the section completely (only admin will have access to it), you could _hide_ it:
http://ez.no/doc/ez_publish/user_manual/3_8/daily_tasks/hiding_and_revealing_content

Marco
http://www.hyperroad-design.com

Krischan Hauschkez

Sunday 22 October 2006 10:44:24 am

Marco, that was exactly what I was searching for. It's a bit more complicated as I think it should be, but anyway: I managed to do it!

Thanks a lot, you were all very helpful!

eZ debug

Timing: Jan 20 2025 20:13:43
Script start
Timing: Jan 20 2025 20:13:43
Module start 'content'
Timing: Jan 20 2025 20:13:43
Module end 'content'
Timing: Jan 20 2025 20:13:43
Script end

Main resources:

Total runtime0.1877 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 591.0078180.8281
Module start 'content' 0.00710.0070 771.835997.8984
Module end 'content' 0.01420.1734 869.7344526.2031
Script end 0.1876  1,395.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00402.1044200.0002
Check MTime0.00150.8164200.0001
Mysql Total
Database connection0.00090.479410.0009
Mysqli_queries0.135372.07611410.0010
Looping result0.00130.71481390.0000
Template Total0.173192.210.1731
Template load0.00090.478910.0009
Template processing0.172291.715110.1722
Override
Cache load0.00060.340510.0006
Sytem overhead
Fetch class attribute can translate value0.00080.422410.0008
XML
Image XML parsing0.00020.113410.0002
General
dbfile0.00944.9940200.0005
String conversion0.00000.004430.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.0002 secs