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

Snehal Brahmbhatt’s picture

You 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

renatog’s picture

Status: Active » Reviewed & tested by the community

Hi 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.

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Thank you very much @snehal.addweb

Best,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.