eZ Community » Forums » Developer » content read policies at attribute level
expandshrink

content read policies at attribute level

content read policies at attribute level

Wednesday 08 February 2012 10:36:05 am - 2 replies

hi ppl,

i'm looking for a content read policies at attribute level solution. i found this: 

http://ezpedia.org/en/project/attributeedit_policy

but this is for content edit attribute policies.

have someone already treat with a similar problem? some help, how should be this done?

thanks

Sunday 12 February 2012 4:30:34 pm

Hi Juan,

If your intent is to limit the view of an attribute for a specific role you may probably handle it by overriding the datatype's view template by using an if statement from which you can check whether the user is member of that specific role. You can retrieve the name of a role through a user member_of fetch function (http://doc.ez.no/eZ-Publish/Techn...ules/user/Fetch-functions/member_of).

Haven't tested it yet, just an idea..

Modified on Sunday 12 February 2012 4:46:45 pm by Lo' F.

Tuesday 14 February 2012 6:34:53 pm

hey thanks.

i will test it

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from