6

I have a view setup to list my OG Nodes, those nodes and their greater content need to be private to only the group, but on the front end of the site I want to list some of the featured Nodes. As it stands the node access system is removing those nodes from my public listing. Any solutions to keep the full node private, but list these OG Nodes publicly?

6

You can tell Views to ignore the access control of some of the Views. On Views 3.x, this parameter can be found under "Query Settings" / "Disable SQL rewriting", and is described as:

Disabling SQL rewriting will disable node_access checks as well as other modules that implement hook_db_rewrite_sql().

The full nodes will stay private, so you should make sure not to link to them in the View so that your users do not land on "Access Denied" (403) pages.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.