Unfortunatley not, the XPath statements don't support custom extensions, but the Lucene PrefetchList could work if you use a field to store path Ids ?
Or how about using the Xml PrefetchList with: $currentPage/ancestor-or-self::Department/Articles/* and then use a macro (Custom Label) to remove those items you don't want ?
Xml PrefetchList Xpath blues..
Hi,
Is some like this possible in the xpath statement?
$currentPage/ancestor-or-self::Department/Articles/*[umbraco.library:DateGreaterThanOrEqualToday(umbraco.library:split(dateRange,',')[1]]
"dateRange" is a properry wit htwo dates seperated with a comma.
The goal is to only list articles that are not expired.
I considered using the Lucene PrefetchList, but the picker needs a relative starting point - ie only show articles under the current departmnet.
/ulrich
Hi Ulrich,
Unfortunatley not, the XPath statements don't support custom extensions, but the Lucene PrefetchList could work if you use a field to store path Ids ?
Or how about using the Xml PrefetchList with: $currentPage/ancestor-or-self::Department/Articles/* and then use a macro (Custom Label) to remove those items you don't want ?
HTH,
Hendy
Hi Hendy
Absolutely brilliant...!! ;)
I went down the macro road... I find it very, very usefull.
Thank you so much.
/ulrich
is working on a reply...