<div dir="ltr">even in that case too, you can show hide which nodes to show and which not, by altering the search results you get.<div>Hooks are available for solr as well as default search too.</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Sat, Aug 31, 2013 at 12:04 PM, Mutuku Ndeti <span dir="ltr">&lt;<a href="mailto:jnmutuku@gmail.com" target="_blank">jnmutuku@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div>Thanks Vaibhav,<br><br></div>I am also looking for a way to hide the nodes from search results. <br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On 31 August 2013 09:25, Vaibhav Jain <span dir="ltr">&lt;<a href="mailto:in.vaibhavjain@gmail.com" target="_blank">in.vaibhavjain@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You can do that from the &quot;Publish&quot; checkbox provided in core, and allowing registered users to see the unpublished nodes.<div>


<br></div><div>However, with CCK, you can add a check in node view or if possible init (if we get the complete node object there), and check if the what the value is set to.</div>

<div>If anonymous cannot see the node, add drupal_access_denied(); and exit; </div><div>This should do. :)<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sat, Aug 31, 2013 at 11:44 AM, Mutuku Ndeti <span dir="ltr">&lt;<a href="mailto:jnmutuku@gmail.com" target="_blank">jnmutuku@gmail.com</a>&gt;</span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi,<br><br>I have a cck field where a user or admin can select &quot;do not display this item(node)&quot;. I need to hide the node with this specific value to anonymous users. <br>




<br></div><div>what would be the best approach to do this. <br clear="all">
</div><div><div><br>
</div></div></div>
<br></div></div><span><font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>
-- <br>Regards,<br>Vaibhav Jain
</font></span></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br></div></div>Tel:254- 722-490994<br><a href="http://www.agile.co.ke" target="_blank">www.agile.co.ke</a> | <a href="http://www.jipambe.com" target="_blank">www.jipambe.com</a><br>


<br>
</div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Vaibhav Jain
</div>