Forums / Setup & design / Showing content just to registered users

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

eZ debug

Timing: Jan 18 2025 00:48:41
Script start
Timing: Jan 18 2025 00:48:41
Module start 'content'
Timing: Jan 18 2025 00:48:42
Module end 'content'
Timing: Jan 18 2025 00:48:42
Script end

Main resources:

Total runtime0.7040 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.8438180.8203
Module start 'content' 0.00680.5804 768.6641590.8672
Module end 'content' 0.58720.1166 1,359.5313332.7422
Script end 0.7039  1,692.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5514210.0002
Check MTime0.00140.2054210.0001
Mysql Total
Database connection0.00110.150310.0011
Mysqli_queries0.627089.07051970.0032
Looping result0.00210.30371950.0000
Template Total0.673995.720.3370
Template load0.00200.285820.0010
Template processing0.671995.446720.3360
Template load and register function0.00010.020610.0001
states
state_id_array0.00090.133010.0009
state_identifier_array0.00090.129520.0005
Override
Cache load0.00170.2374290.0001
Sytem overhead
Fetch class attribute can translate value0.00160.225740.0004
Fetch class attribute name0.00110.150450.0002
XML
Image XML parsing0.00170.238540.0004
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00230.3300330.0001
String conversion0.00000.000830.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs