
MsFlux, for the moment AjaxSearch doesn’t provide as Jot for example, any placeholders templating mechanism, so you can’t dissociate, with one single ajaxSearch call, the search input form from the results.
My suggestion is to distinguish the display of the input search form from the display of results. So for that, to use two AjaxSearch calls
1/ put the following call snippet in your searchBreadcrumbsWrapper div :
[!AjaxSearch? &ajaxSearch=`0` &showResults=`0` &&AS_landing=`z`!]
This call only display the searchForm without any results. z is the id of your current page.
2/ put the following call snippet in your rightColumn div :
[!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]
This call display the results on the z page. Obviously, you can add others parameters like &grabmax to manage the pagination.
Try it and let me know if it’s ok. If yes, perhaps, you could invite me in your library, i am ready for an hour of wine tasting![]()
HI MsFlux,
Sorry I did a mistake.
In [!AjaxSearch? &ajaxSearch=`0` &showResults=`0` &AS_landing=`z`!] use &AS_showResults=`0` instead of &showResults=`0`.
But why do you haven’t any extracts in the results page ? do you use &extract=`0` ?
The only thing I need to figure out now, is how to not get the search results page to show up as a blog post.
I’m wondering, is there a way to display some of the text of the blog posting underneath the title in the search results?
Thanks again for all your help.
msflux
Quote from: msflux at Jan 09, 2008, 02:54 PM
The only thing I need to figure out now, is how to not get the search results page to show up as a blog post.
I am not sure if I understand your question correctly, but this should be as simple as changing the template for the search results page to something different than what you have your blog posts set to. Also, make sure to uncheck "Show in Menu" and under "Page Settings" uncheck "Searchable" for the search-results page.
It was that easy actually. I was way overcomplicating it in my head and missing the obvious solution.
I’m wondering, is there a way to display some of the text of the blog posting underneath the title in the search results?
Thanks again for all your help.
msflux
By default it pulls from the content, however if the content was not where it located the search term, it will appear empty. However, if you place text in the "Introtext" field for the blog, it will use this as the description under the title in the search results.
This discussion is closed to further replies. Keep calm and carry on.