Theoretically you’d want this in the ajax-search snippet anyway. ^_^
"If requested page is different from current alias, display search results."
Would be more solid then a seperate snippet. But this works too I suppose.
That reminds me, I did find a bug. A small one that is slightly irrelevant.
A search will still happen if the document is requested with it’s proper alias. (’nowhere’ in my case) This is both good and bad. I consider it too good to be bothered about the bad.
I just like exploding things! Glad to be of service... this is something I’ve been wanting to do myself for a while actually ;-p great minds think a like... errr something like that ;-p
It’s automatically styled in a <h2> object. Of course you can simply make it any class, thing you want.
It’s basic CSS styling, but I didn’t include a seperate ID/Class. Probably lazyness on my part. ^_^
What’s great about a snippet like this is that you can use a custom AjaxSearch template to create a "Related Pages" block on a page.... especially if you were to also grab the current pages keywords TV and add it in to the mix, then in your template just show the linked pagetitles of the search results ;-p
No example yet, just thought of it while re-reading this thread....