Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
Hi Chriztian,
Thank you , it´s working now.. some time, little thing can be some a headheach..
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
Hi Chriztian,
Thank you , it´s working now.. some time, little thing can be some a headheach..
NickyLarson
is working on a reply...