如何排除已使用“umbracoRedirect”重定向到其他页面的页面,使其不会显示在 xsltSearch 结果中?
<xsl:variable name="possibleNodes" select="$items/descendant-or-self::*[
@isDoc
and string(umbracoNaviHide) != '1'
and name() != 'ImageGalleryPhoto'
and string(umbracoRedirect) != '1' <!-- How to hide umbracoRedirect from search ?? -->
and count(attribute::id)=1
and (umbraco.library:IsProtected(@id, @path) = false()
or umbraco.library:HasAccess(@id, @path) = true())
]"/>