Showing content just to registered users

Author Message

Daniele Conci

Thursday 03 February 2011 3:29:20 am

Hi dear all,

once more i call for your help to improve my handling as EZpublish-er =)

Actually i did a nice feedback area, where i can insert users opinion about my web-site. This simple job has been done with a folder, which shows sub-items, and the object "Comment" listed in the folder.

Now i'd like to improve this, allowing only registered user to see this comment list.

Could you give me a tip or direction to find out what i should do to enable this?

thanks a lot!

Daniele

Thiago Campos Viana

Thursday 03 February 2011 3:58:38 am

You could create a new section and assign it to the comment folder, then you create a new role and assign it to the member user group.

Here are few links that could help you complete this task:

http://doc.ez.no/eZ-Publish/Technical-manual/4.4/Concepts-and-basics/Access-control

http://doc.ez.no/eZ-Publish/User-manual/4.4/Daily-tasks/Managing-sections

http://doc.ez.no/eZ-Publish/User-manual/4.4/Daily-tasks/Managing-users

eZ publish has the best user management system you could found, you could customize the access as much as you want.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Bertrand Dunogier

Thursday 03 February 2011 5:04:53 am

Like Thiago said, it is quite simple:

  1. create a new section "Members area" or something (in setup)
  2. assign this section to the subtree you want to limit read access for
  3. create/edit a role that is granted the content/read policy on this section

By default, the anonymous role can not read content in sections other than Standard / Media.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

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 18 2025 03:07:01
Script start
Timing: Jan 18 2025 03:07:01
Module start 'layout'
Timing: Jan 18 2025 03:07:01
Module start 'content'
Timing: Jan 18 2025 03:07:01
Module end 'content'
Timing: Jan 18 2025 03:07:01
Script end

Main resources:

Total runtime0.0166 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.0060 589.4766152.6406
Module start 'layout' 0.00600.0036 742.117239.4844
Module start 'content' 0.00960.0050 781.601689.5703
Module end 'content' 0.01470.0020 871.171934.2891
Script end 0.0166  905.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.6854140.0002
Check MTime0.00116.5562140.0001
Mysql Total
Database connection0.001810.582110.0018
Mysqli_queries0.003420.480830.0011
Looping result0.00000.096010.0000
Template Total0.00169.610.0016
Template load0.00095.167810.0009
Template processing0.00074.387010.0007
Override
Cache load0.00063.653510.0006
General
dbfile0.00021.427080.0000
String conversion0.00000.043040.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