Copied to clipboard

Flag this post as spam?

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


  • Claire Favillier 3 posts 50 karma points
    Sep 19, 2013 @ 15:53
    Claire Favillier
    0

    Compatibility with 6.1.3

    Hello ! I installed XSLTsearch on my Umbraco v6.1.3 and it's working fine if i use a nodeid.

    It's not working for the whole website when i have :

    source="-1"

    It's not a problem for me but if someone has a clue...

  • Douglas Robar 3570 posts 4670 karma points MVP 6x admin c-trib
    Sep 19, 2013 @ 18:07
    Douglas Robar
    0

    You are correct, there is a new bug in Umbraco that means you must specify the source= parameter. You can't currently leave it blank.

    You can use source="-1", but by default XSLTsearch is configured to only search within the part of the content tree that contains the search page and not, literally, every page in the umbraco installation. This is the ideal setting for multi-lingual sites, for instance.

    This behaviour is easily changed, though, if you truly want to search every page no matter where it is. Open the /xslt/xsltsearch.xslt file and search for:

     <xsl:call-template name="search">
          <!-- searches absolutely all pages (useful if you want to search multiple sites at once, 
               or if you do not have all your content pages below a common homepage node in the content tree)
          <xsl:with-param name="items" select="umbraco.library:GetXmlAll()/*"/>
          -->
          <!-- searches all pages within a specific site (useful if you have multiple sites in one umbraco installation) -->
          <xsl:with-param name="items" select="$currentPage/ancestor-or-self::* [@level = '1']"/>
     </xsl:call-template>
    

    Change the comment to enable searching everything with the GetXmlAll() function and disable searching only within the $currentPage/ancestor-or-self.

    cheers,
    doug.

  • Claire Favillier 3 posts 50 karma points
    Sep 20, 2013 @ 10:27
    Claire Favillier
    0

    Thanks a lot !

Please Sign in or register to post replies

Write your reply to:

Draft