Community

How to set up private content visible to registered users only

Hi to the whole community.

There will be only two kind of users on my website: registered and unregistered; registered users will have access to some additional content that unregistered ones will not even see.

I've got three content types; let's call them B1, B2 and C. B1 and B2 appear as blocks, and are managed through Views; C (very similar to a story content type) will appear as main content, in the central column.

I need to prevent unregistered users to get access to certain 'private' content; such content is marked as 'public' or 'private' through a CCK on/off field, in order to let me switch content visibility.

B1 and B2 were easy to set up, but C is causing me gigantic headaches.

Is there a way to filter out content according to the value of a field?

Thanks in advance
--
unwiredbrain

Comments

http://drupal.org/project/tax

http://drupal.org/project/taxonomy_access or http://drupal.org/project/tac_lite would do what you want, but I suspect there's probably a simpler solution. A bit of PHP in your template would probably do it, but I'm afraid somebody else would have to provide the details.

_

Actually for this simple use case http://drupal.org/project/simple_access or http://drupal.org/project/node_privacy_byrole is probably simpler and easier.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

I found my way through

I found my way through Content Access.
Thanks everybody.