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