Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hutch White 89 posts 112 karma points
    Feb 12, 2011 @ 00:22
    Hutch White
    0

    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?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 12, 2011 @ 12:41
    Jan Skovgaard
    0

    Hi Hutch

    what version of XSLT search have you installed?

    /Jan

  • Hutch White 89 posts 112 karma points
    Feb 12, 2011 @ 14:55
    Hutch White
    0

    XSLTsearch 3.0

    Umbraco Version: 4.5.2

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 12, 2011 @ 15:11
    Kim Andersen
    1

    Hi Hutch

    Could you provide us with the code from where you insert the macro?

    /Kim A

  • Hutch White 89 posts 112 karma points
    Feb 13, 2011 @ 00:41
    Hutch White
    0

    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 White 89 posts 112 karma points
    Feb 15, 2011 @ 19:47
    Hutch White
    0

    Anyone have any ideas?  I'm stuck.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 15, 2011 @ 20:24
    Kim Andersen
    0

    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

  • Hutch White 89 posts 112 karma points
    Feb 15, 2011 @ 22:05
    Hutch White
    0

    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>

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 20, 2011 @ 12:35
    Kim Andersen
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft