Copied to clipboard

Flag this post as spam?

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


  • NickyLarson 14 posts 35 karma points
    Oct 02, 2011 @ 22:50
    NickyLarson
    0

    exclude document type from xsltsearch

    Hi everyone , I am trying to exclude from my search some page, how have document type property called searchHide -  (True or False).

    I am using umbraco version 4.7 and xslt search 3.0.1.

     

    I have tried the example of  http://blog.percipientstudios.com/2009/4/7/customizing-xsltsearch.aspx, but the code it´s  for version xslt search 2.8. I can´t get this work. :(

    Can anyone help.

    the code I have in the xslt search 3.0.1. is

        <xsl:variable name="possibleNodes" select="$items/descendant-or-self::*[  
                                 @isDoc

    and string(umbracoNaviHide) != '1'

    and string('searchHide ') != '1'                                                                                      
    and count(attribute::id)=1
    and (umbraco.library:IsProtected(@id, @path) = false()
    or umbraco.library:HasAccess(@id, @path) = true())
    ]"/>

     

    Thansk in advance

    NickyLarson


  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Oct 02, 2011 @ 23:00
    Chriztian Steinmeier
    1

    Hi Nicky,

    There's a trailing space on the searchHide property in there - is that a direct paste? If so that could well be the reason it doesn't work.

    /Chriztian

  • NickyLarson 14 posts 35 karma points
    Oct 03, 2011 @ 10:16
    NickyLarson
    0

    Hi Chriztian,

     

    Thank you , it´s working now.. some time, little thing can be some a headheach..

     

    NickyLarson

Please Sign in or register to post replies

Write your reply to:

Draft