Design and CSS styles
Version 5.x > Design and CSS styles > Creating a new Document Type with permissions within the article View modes: 
User avatar
Member
Member
telix_work-hotmail - 8/30/2010 11:16:52 PM
   
Creating a new Document Type with permissions within the article
Hello,

I am trying to create a new article document type which allows me to have a section of the article only visible to certain roles.

For example :

News Article

Part A (Public View)

Part B (Secured Member View)

Is there anyway to do this ?

Thank you,
WL

User avatar
Member
Member
telix_work-hotmail - 9/2/2010 12:44:14 AM
   
RE:Creating a new Document Type with permissions within the article
anyone able to help me with this ?

thank you.


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/8/2010 7:16:47 AM
   
RE:Creating a new Document Type with permissions within the article
Hi,

If I am getting the right meaning, you want to have some pre-defined permissions when document is created. the problem here is that the permissions are related to documents and not to document types.

first option is to create some parent document where you will set the permissions and allow only this certain document type to be created underneath it - so the child documents will inherit the permissions from parent.

Second option is to use custom event handler and set the permissions when the document is being created (tree node handler).

Best regards,
Juraj Ondrus

User avatar
Member
Member
DesignByOnyx - 12/6/2010 7:31:13 PM
   
RE:Creating a new Document Type with permissions within the article
Use 2 repeaters and 2 different transformations. I do this all the time.

One repeater/transformation combination gets shown to one role, and the other repeater/transformation combination gets shown to the other role.

While it is kind of redundant, it's fairly easy to implement and allows you complete control over what one role sees as opposed to the other role.