0

All my posts have a "group content visibility" field. So, when the content is private, if the user is not member of the group, the post will not be accessible.

In addition, if there is a link to this post, it will not be displayed in the menu for example. However, what I want is to keep this link even if the post is private. So, when the user clicks on the link, he will get a message like "you need to subscribe to the group to get access to that content".

For example, the website drupalize.me is exactly doing that. If you click on non-free links, then you get a message to subsribe.

Any help will be greatly appreciated ?

2
  • Drupal's menu system is based on permissions, if the user doesn't have access to a path the link will (rightly) not be displayed. If you want to change that behaviour you'll need to override how the menu system behaves in that respect. Probably not an easy thing to do, I'm not even sure how you'd approach it
    – Clive
    Commented Aug 18, 2013 at 12:52
  • 1
    The simplest approach I have found for menu items is to use the full URL instead of a relative path. This bypasses drupal permissions check Commented Aug 18, 2013 at 13:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.