Project:Restricted Search
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:minor
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

Totally great module!
I'm not even sure if this is the right module for this kind of thing, but here's a random suggestion for future versions -- it would be really neat if, when I restricted a certain node from search, I had the option to redirect searches to other pages.

Example: My front page is a panels page made up of a view and couple nodes. The nodes should not ever be displayed by themselves, but obviously they show up in a search and it links to them directly. With this module, I can keep them from showing up in a search. But! Wouldn't it be cool if I could say, "This is the sidebar for my home page. If this node appears in a search, the link should be redirected to /home ."

(My site is small, so I've done this manually in search-result.tpl.php like so:
if ($item['node']->path == 'content/front-page-sidebar'){$item['link'] = '/';}
But that would be pretty crazy for a larger site.)

Comments

#1

Version:5.x-1.0» 5.x-1.x-dev
Status:active» closed (won't fix)

Interesting idea. I'm not sure myself if it's out of scope for this or not. I don't think much of the code would be the same - I think you would be looking at one of the alter hooks from the search module to change the links directly.

I'm going to mark this as won't fix, but feel free to take a look at the code. If for some reason you think large portions of it would be duplicated for your feature, please re-open this issue with the details.

Thanks!

nobody click here