I've installed XSLT search and had it set to be usable in the editor so that I can easily add it to areas of the site I want it on.
The problem I'm having is that when using the search feature, it's not displaying the Context. It searches and finds the text fine, but doesn't display any context. I always get "Context: unavailable". Has anyone else had this issue? Can anyone provide some guidance?
I'm inserting it into the Richtext Editor. I've ensured that both the Fields to Search and Fields Shown in Preview are the same. It's searching fine, just not displaying the Context or Preview.
Hutch, have you tried setting the previewType to BEGINNING? Just to check that this option works.
In the manual it says the following about the previewType option:
"If you select CONTEXT, you set the previewFields parameter to be the same as searchFields (without any @ attributes). Otherwise, some of your searches may have no context to display."
But it looks like you have already taken care of this, so this shouldn't be where the error is found.
XSLTsearch Issue
I've installed XSLT search and had it set to be usable in the editor so that I can easily add it to areas of the site I want it on.
The problem I'm having is that when using the search feature, it's not displaying the Context. It searches and finds the text fine, but doesn't display any context. I always get "Context: unavailable". Has anyone else had this issue? Can anyone provide some guidance?
Hi Hutch
what version of XSLT search have you installed?
/Jan
XSLTsearch 3.0
Umbraco Version: 4.5.2
Hi Hutch
Could you provide us with the code from where you insert the macro?
/Kim A
I'm inserting it into the Richtext Editor. I've ensured that both the Fields to Search and Fields Shown in Preview are the same. It's searching fine, just not displaying the Context or Preview.
Anyone have any ideas? I'm stuck.
Hi Hutch
Could you try inserting the macro into a template instead of the Richtext editor? Just to check if the search will works that way.
/Kim A
Just did, same issue. Here's my code from my template.
<umbraco:Macro source="1135"
searchFields="bodyText,directoryName,directoryAddress,directoryPhone1,directoryPhone2,directoryFax,directoryEmail,directoryWebsite"
previewFields="bodyText,directoryName,directoryAddress,directoryPhone1,directoryPhone2,directoryFax,directoryEmail,directoryWebsite"
searchBoxLocation="TOP"
previewType="CONTEXT"
resultsPerPage="5"
previewChars="150"
showPageRange="0"
showOrdinals="0"
showScores="0"
showStats="0"
Alias="XSLTsearch"
runat="server">
</umbraco:Macro>
Hutch, have you tried setting the previewType to BEGINNING? Just to check that this option works.
In the manual it says the following about the previewType option:
"If you select CONTEXT, you set the previewFields parameter to be the same as searchFields (without any @ attributes). Otherwise, some of your searches may have no context to display."
But it looks like you have already taken care of this, so this shouldn't be where the error is found.
/Kim A
is working on a reply...