I'm trying to figure out how to display part of my client's content to anonymous users.
Here's the deal. They have a vendor list that I have set up as a vendor content type that is visible only to authenticated users. They don't want specific vendor contract information visible to anonymous users.
BUT, they would like to have a list of the vendors on one of the full-access pages. Essentially I need for the vendor name to be not protected, but the rest of the content must be protected.
I've been thinking about different ways to do this. I don't want to set the content access only on the views, because the nodes themselves, although I don't display them, could be visible. (One of the vendors did a Google search and was able to access the node directly before I changed the content access.) I could set up a content type of only vendor names and use node reference to connect it to the rest of the vendor data, but that seems awfully clunky. I could set up field permissions, but this site has lots of complex content types, so that would be a hassle to set up.
Any good ideas?
Thanks,
Mary
Comments
Write a small custom module
It seems to me that a small custom module to display a page with the vendor information that you want to show would be the cleanest solution. Such a module should be fairly easy, quick and straightforward to code.
One approach is to modify
One approach is to modify node.tpl.php so it only shows the title to anonymous users and the teaser/full node to any one logged in.