hidden node; but still searchable
scotjam - September 1, 2009 - 11:58
| Project: | Hidden |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Is it possible to add an option such that nodes that are hidden can be searched or not? Currently, hidden nodes are not included in the search results, but what I'd like to be able to do is to allow users to view the node snippet in the search results, but not be clickable.
best wishes
scotjam

#1
That would make it a node access module of some for I guess - can you do node preview, but not node view? But the module was specifically trying not to be node access :-) Swapping the action from unpublishing to changing access control might be possible.
The unwritten roadmap for this is to use a set of default flags and actions to do the same thing. If you look at making a flag and linking it to the appropriate change in access control you can probably recreate what you want.
#2
Checked Node Access module and the module works on node view only, there is no split permission for node preview and node view, which is a shame. I'm not sure if that's easier to do than your second suggestion...
As I'm not drupal proficient yet, can you kindly re-explain the 'unwritten roadmap' option?
best wishes
scotjam
#3
No probs. The unwritten roadmap is what I intend to do with this module in the future. When it was written the functionality to do this just didn't exist, but Drupal has moved on so it is now :-)
There's a module called 'flag' it allows you to set arbitary on/off switches for content types. So you can make one like 'hidden'. It can then trigger actions - this is in core; but probably it will need something like the 'rules' module to set off more complicated ones. So on the flag being set you can unpublish the node (easiest case), or you could do something like set it so only some users can see it with node access, or what ever you like. With rules it would also be possible to send off the e-mail about the actions etc.
#4
Thank you.
So, using the above approach I won't need the hidden module right?
Instead, I replicate the functionality I need using flags and rules. The flags let me decide which node will be visible and which ones will not be visible. Those nodes that are visible will work as normal. Those nodes that are 'invisible' will have a rule which stops the node from being read, without stopping the search engine from showing that the node exists. Finally, all nodes when in preview will be tested whether the flag is set or not. If the flag is set then the hyper link to the node view is removed so that only visible nodes can be clicked by the user from the search results.
Hopefully, my understanding is correct.
best wishes
scotjam