Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

How to restrict direct access to the nodes but just allow views to access the required field of the particular node type, for example in views slide show we are sliding the image field belongs to particular node type. But we don't want search engines to access & visitors to access the nodes belong to that node type

share|improve this question

migrated from stackoverflow.com Sep 11 '11 at 5:11

2 Answers

A simple solution would be to not publish the nodes you don't want to be accessible. Views can still pull the data from those nodes.

share|improve this answer
thanks bro it's too simple solution. – Fahad Sep 11 '11 at 6:46
1  
Too simple? There is no such thing as a 'too simple solution'. Complexity isn't a goal in itself, is it? Perhaps Googletorp's answer doesn't solve your specific problem, but in that case you will have to be more elaborate and explain why not. – marcvangend Sep 11 '11 at 8:19
+1 Great solution.. – Sachin Shekhar Sep 14 '11 at 4:26
@marcvangend Though it's late but I have realize that is not the answer of my question. Hope some one can add a better answer – Fahad Dec 8 '12 at 22:31
@Fahad To get better answers, you need to ask better questions. Googletorp's answer looks like a good solution to me, and the upvotes seem to agree. If it doesn't solve your problem, go in and edit your question, adding all relevant details. – marcvangend Dec 9 '12 at 7:46
show 7 more comments
up vote 0 down vote accepted

Here is the long awaited simple solution solution http://drupal.org/project/restrict_node_page_view

With this module you can disable direct access to node pages (node/XXX) based on nodetypes and permissions.

Enable the module and don't forget to configure your permissions.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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