I have spent weeks now trying to figure out how to do something very simple...
I have a view which displays fields from a certain content type in a table format, some fields are custom CCK.
One of the fields is the node title which is linked to the node, this allows the user to click on the title displayed in the table to view the full node.
I only want registered users to able to view the node, but i want anonymous users to be able to see the view with all the node titles.
Any content access modules I have tried will not do this, if the node type is restricted to anonymous users then they cant see the view either, possibly because fields from the node are displyed in the view!
I have also tried the Premium module which doesnt restrict the node at all, instead it helpfully displays the full content of the node along with the message asking users to register to view the full content!
Please help as this is driving me mad and its such a simple function that loads of sites are bound to use.
Comments
Any luck?
Did you ever figure out a solution? I too want to allow certain fields to display in a view, which wouldn't be available otherwise (due to my permissions setup).
Would love to know the
Would love to know the solution too, thanks in advance...
Need this as well, any
Need this as well, any solution?
Field Permissions
There is a field permissions module. It is different from content access and content permission modules in that you can specify field level create,view & edit permissions.
http://drupal.org/project/field_permissions
It is a little tricky to use at first. Go to manage fields in the content type and click edit on the field your looking to apply permissions. Put a check in all the field permission boxes and then head over to your permissions page. You should see all the available permissions for that field now.
Views 3.x
If anyone reading this thread wonders how they can deny access to a node to, say, anonymous users, yet still have the node show up in a View for those users, take it from someone who tried five different methods: your best friend is Views 3.x. Use your preferred method of access restriction like Content Access, TAC, or even native, to restrict access to certain nodes. Then, in Views 3.x, go to Advanced Settings > Query Settings, and check "Disable SQL rewriting". This allows data from restricted nodes to be seen by all users, including anonymous ones. Used in conjunction with 403 Redirect to Login, this gives anonymous users an easy path to register and see the restricted data.
Thank you dalehgeist, this
Thank you dalehgeist, this solution worked for me. I use views 3 but I just saw ths feature.