PDA

View Full Version : different results linking based on result URL



kkaminski
01-19-2011, 07:55 PM
Hello,

Is there a way to configure the search results links so that the target browser window (current window vs. new window) varies based on the URL of the result link?

Our site's current behavior is:
- Search results links to a plugin file (.PDF, .DOC, .XLS) open in new window
- Search results links to .aspx files open in current window

The desired behavior is:
- Search results links to a plugin file (.PDF, .DOC, .XLS) open in new window (no change is needed to this setting)
- Search results links to .aspx files in the /tool directory open in new window
- All other .aspx files (those NOT in the /tool directory) open in current window

Is that behavior possible? If what I'm describing isn't clear, please let me know.

Thanks for your help!

wrensoft
01-19-2011, 09:18 PM
There is no built-in option to get the last two behavior.
You would need to write some custom code to make this work like you want. Perhaps a script to post-process/format the results (you can get XML results from the CGI).

For other people reading this, on the "Scan options" configuration window there is a check box called , "Open all plugin file formats in a new window".

When this option is enabled, all plugin supported file formats (e.g. PDF, DOC, PPT files, etc.) will open in a new window when you click on them in the search results.

There is also an option in the "Search page" configuration window to alter the behavior of all links in the search results, to open in a new window or frame.

But neither of these options solve the case above.