Structure - Field Access
Status: Complete ✅
Not Mandatory
Visibility of content can be managed at the field level of the article based on the role and/or entitlement of the person looking at the article
Practice/Technique
- Structure
- Details on the Resolution Field
Reference: KCS v6 Practices Guide
Technique 5.1: KCS Article Structure
Demo Requirements for Verified Only
OB/Config/Cust/NS/SF
Config
- Goto admin/modules
- Enable the Field Permissions module.
Native Product Capability
Drupal provides a hook to granular control access at the field level, hook_entity_field_access. The Field Permissions module uses this API hook.
Mechanism for Config
There is a form to configure field level access.
Config Strategy
Once Field Permissions module is installed, you need to edit the field settings form to enable permissions for each field where you need this feature. You can enable any of the following permission types:
- Create own value for the field
- Edit own value for the field
- Edit anyone's value for the field
- View own value for the field
- View anyone's value for the field
The settings for the Resolution field is located here: admin/structure/types/manage/article/fields/node.article.field_resolution