<xsl:for-each select="$currentPage/* [pris > $prismin and $prismax > pris and date > $aarmin and $aarmax > date and serie = $moble and @isDoc and string(umbracoNaviHide) != '1']">
andthis do
<xsl:for-each select="$currentPage/* [pris > $prismin and $prismax > pris and serie = $moble and @isDoc and string(umbracoNaviHide) != '1']">
date = umbraco.library:FormatDateTime(design_aar, 'yyyy')
Problem is dates are just strings in XSLT - converting the year part to a number should solve it for you, e.g.:
<xsl:for-each select="$currentPage/*
[pris > $prismin and $prismax > pris and number(substring(date, 1, 4)) >
$aarmin and $aarmax > number(substring(date, 1, 4)) and serie = $moble and @isDoc and
string(umbracoNaviHide) != '1']">
for-each select multiple conditions
Hey Guys
why is it that this does not work
and this do
date = umbraco.library:FormatDateTime(design_aar, 'yyyy')
aarmax / aarmin = umbraco.library:RequestQueryString
Hope this is enough!
I know I can work with 'and', 'or'. but what more do I have of possibilities.
I've looked many places online but I can not find a list.
Cheers, Johan
Hi Johan
Do you get some kind of error on the first expression or does it just not return any results?
/Jan
I get nothing. no error.
Hi Johan,
Problem is dates are just strings in XSLT - converting the year part to a number should solve it for you, e.g.:
/Chriztian
hey forgot something...
Son of a bee-sting. You're so wise Mr. Chriztian. thank you!
number(substring(design_aar, 1, 4))
Hehe - thanks Johan.
Merely standing on the shoulders of giants :-)
/Chriztian
is working on a reply...