Copied to clipboard

Flag this post as spam?

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


  • Claire Botman 48 posts 77 karma points
    May 24, 2011 @ 09:24
    Claire Botman
    0

    Why not GetXmlAll()?

    I notice in Version 3.0.1 on Umbraco 4.7 that when source is set to whole site (0 or 1), you've stopped using GetXmlAll() and are including only items with level 1.

    Why is this?  I have a site that's got 2 root nodes, the 2nd has a deep-ish heirarchy of pages beneath it which should be included and aren't with this latest version.

    What are the ramifications of uncommenting the GetXmlAll() code, it seems to work.?

    Thanks for a fantastic package Doug.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 24, 2011 @ 16:56
    Douglas Robar
    0

    The goal with the change was that when having multiple sites in one umbraco installation (for instance a blog and a www site; or multiple languages with an english, french, german, arabic, etc language sites), that XSLTsearch would only search within that site by default. This is the most common scenario. 

    But for when you want to search absolutely everything in the scenario you describe you should find the GetXmlAll() and comment out the one line in favor of the other in the xsltsearch.xslt file. The comments will indicate which lines.

    cheers,
    doug.

  • Claire Botman 48 posts 77 karma points
    May 25, 2011 @ 00:06
    Claire Botman
    0

    OK, thanks for the quick reply Doug.

Please Sign in or register to post replies

Write your reply to:

Draft