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 all,
I'm currently toying around with Examine in XSLT. The problem is, that when I do this:
<xsl:value-of select="umbraco.examine:SearchMemberOnly('My searchterm', 'true', 'MemberSearcher')"/>
I get the correct data back.
But when I try to pass in a variable with the search term, I get the "No results" error? Is it possible at all to do what I want? :-)
Thanks in advance.
- Bo
Hi Bo,
How are you creating the variable?
These should all behave equally:
<xsl:variable name="searchString" select="'My searchterm'" /> <xsl:variable name="querySearch" select="umbraco.library:RequestQueryString('q')" /> <xsl:value-of select="umbraco.examine:SearchMemberOnly('My searchterm', true(), 'MemberSearcher')" /> <xsl:value-of select="umbraco.examine:SearchMemberOnly($searchString, true(), 'MemberSearcher')" /> <xsl:value-of select="umbraco.examine:SearchMemberOnly($querySearch, true(), 'MemberSearcher')" />
/Chriztian
Chriztian, you rock!
The only thing that needed to change was 'true' to true() as you mentioned and I'm now getting results back.
Thank you soooo much! :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Passing variable to Examine search
Hi all,
I'm currently toying around with Examine in XSLT. The problem is, that when I do this:
I get the correct data back.
But when I try to pass in a variable with the search term, I get the "No results" error? Is it possible at all to do what I want? :-)
Thanks in advance.
- Bo
Hi Bo,
How are you creating the variable?
These should all behave equally:
/Chriztian
Chriztian, you rock!
The only thing that needed to change was 'true' to true() as you mentioned and I'm now getting results back.
Thank you soooo much! :)
- Bo
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.