Following my question here - http://drupal.org/node/217596#comment-3655498
and the successive comments, I am opening a new issue.
I'd like to deny access to all nodes of a particular content-type, yet to allow access to data (title, body, cck) through Views.
There were a couple of ideas at the referred link above, but they're not complete.
Thanks for helping !
Comments
Comment #1
itserich commentedHello -
I asked a similar question and someone seemed to state access to a node could be denied to certain roles, but access to the data could still be achieved through proper Views permission configuration.
Here is the original comment. Have not tried it yet. Good luck.
http://drupal.org/node/964980#comment-3679838
Comment #2
maruan commentedthanks @itserich !
It doesn't look like http://drupal.org/project/field_permissions
would solve this issue for us.
One trick that I found (but don't like it ...) is to not publish those nodes.
Access to unpublished nodes is denied anyway, and their data is still accessible through Views.
I am still looking for a better solution.
Comment #3
itserich commentedI think Views access to unpublished nodes seems like a good solution. Very secure, not allowing browsing of nodes.
Is there some reason you don't like it?
Comment #4
dubs commentedIt would be great if this could be achieved without having to unpublish the nodes. We want to create a digital asset library, and provide imagecache watermarked images on the view, and then the click through (to the node) allows visitors to view and download the original if they have appropriate permissions.
Comment #5
dalehgeist commentedIf 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.
Comment #6
MickL commentedyaaaay thank you! :)
just check "disable sql rewriting" in a view to show the restricted nodes.
Comment #7
dubs commentedThanks for reporting back with this - that's great!