XsltSearch: Get the $matchnodes of specific documentTypes only
Hi to all,
I have been working with the XsltSearch package. I could see that the variable $matchnodes have @id, @nodeType, @level, @parentID and many othe properties.
I need to modify it to get the matchnodes of only certain document type.
I tried:
<xsl:when test ="umbraco.library:GetXmlNodeById($matchedNodes/@id)/SC_ServicesPage[@isDoc] "> <!-- your code here --> </xsl:when>
This is not working at all. Also I tried to make it like this.
<xsl:when test ="$matchedNodes/@nodeType = 1193"> </xsl:when>
the way you are filtering will result the selection of all nodes that are of type 'Article' or 'TextPage' only. But in my scenario, I have to managed to changed the selection of the different source node to search based on the input radio button. The only thing is that I need is to check if the matchednodes are of "SC_ServicesPage" doctype or not and then make an anchor on it with querystring while for other matched nodes it will be anchor with no querysting.
XsltSearch: Get the $matchnodes of specific documentTypes only
Hi to all,
I have been working with the XsltSearch package. I could see that the variable $matchnodes have @id, @nodeType, @level, @parentID and many othe properties.
I need to modify it to get the matchnodes of only certain document type.
I tried:
This is not working at all. Also I tried to make it like this.
But this will not result in node-set. :)
I usually do this at the "possibleNodes" variable, here's an example of one of my sites:
Hi Sebastiaan,
the way you are filtering will result the selection of all nodes that are of type 'Article' or 'TextPage' only. But in my scenario, I have to managed to changed the selection of the different source node to search based on the input radio button. The only thing is that I need is to check if the matchednodes are of "SC_ServicesPage" doctype or not and then make an anchor on it with querystring while for other matched nodes it will be anchor with no querysting.
Sebastian, I tried this aswell and it still returned all nodes.
?
is working on a reply...