Orchard CMS - Can Permissions Be Set for a Single Content Item Instance Such as a Custom Form

StackOverflow https://stackoverflow.com/questions/21830870

  •  12-10-2022
  •  | 
  •  

Question

In Orchard CMS I know that permissions can be set for content types. What is the suggested way to set permissions on single instances of content items. In particular, I would like to use the custom forms module to create multiple custom forms where some are only available to authenticated users while others are available to anonymous users. I am fine with creating a custom module for this but would like to have at least a general idea of what would is involved with building more granular permissions at the content item level. Thanks.

Was it helpful?

Solution 2

You can achieve that with the built-in Content Item Permissions feature. This enables you to attach the Content Permissions content part to your content types, which will add a set of checkboxes to the editor to customize the accessibility of each content item of that type.

OTHER TIPS

I was never really able to find any detailed documentation on this so here is a summary of what is involved:

1) Under "Modules" section Enable "Content Item Permissions" feature

Enable Content Item Permissions Feature

2) Under "Content Definition" find the content type you want to add permissions to and click "Edit"

enter image description here

3) Attach the "Content Permissions" part to your content type

Content Permissions Part

4) After adding the part you can manage the permission settings

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top