Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Working on a Membership site built on Drupal and am aiming to hide the content of certain view pages on the site unless the user has a specific (membership) role.
However, setting view page access control hides the entire page — including title and very existence (it disappears out of nav menus, etc.). My goal is to show the page is still there, but when a user without proper access clicks on it, the body content (fields, etc.) are not shown. That is replaced by a message to subscribe to the membership.
Is that doable with views? If so, how? Any suggestions?
Comments
Comment #1
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commentedYou can use following modules for your purpose according to your requirements.
1. Field Permissions
2. User role field
3. Node access user reference
4. Content Access
Please feel free to contact incase of any query/concern regarding this.
Thanks,
Snehal Brahmbhatt | AddWeb Solution
https://www.drupal.org/user/3147795/track
Comment #2
renatogHi guys, how are you?
I checked and really #1 likes good.
P.s. Just one observation: Content Access is not covered by Drupal’s security advisory policy and exists in beta version.
Comment #3
renatogThank you very much @snehal.addweb
Best,