It might have been a good idea to flag this breaking change more prominently as I've just spent a number of long, frustrating hours (and a very angry client who hasn't been able to use their site for a number of days) wondering why nuPickers suddenly started throwing 500 server errors. The only way I even found this thread was after downloading the nuPickers source, building it myself and then trying to debug it.
Don't want to sound arsey, as nuPickers is amazing, but breaking changes really need to be advertised. Cheers!
NB. Sorry, Lee, this wasn't aimed specifically at you - just a general rant!
xPath and CurrentPage on nuPickers
I'm trying to get xpath working with nuPickers but can't seem to get $currentPage working.
As a basic test I'm trying $currentPage/parent::*[@isDoc]
But it doesn't return anything
Still struggling with this, does anyone have any help?
Thanks
Hi Craig,
Try replacing
$currentPage
with$ancestorOrSelf
.The latest version of nuPickers has dropped support for the uQuery that it was originally using to help resolve those parameters.
See here if you're curious about the change/discussion.
Cheers,
- Lee
It might have been a good idea to flag this breaking change more prominently as I've just spent a number of long, frustrating hours (and a very angry client who hasn't been able to use their site for a number of days) wondering why nuPickers suddenly started throwing 500 server errors. The only way I even found this thread was after downloading the nuPickers source, building it myself and then trying to debug it.
Don't want to sound arsey, as nuPickers is amazing, but breaking changes really need to be advertised. Cheers!
NB. Sorry, Lee, this wasn't aimed specifically at you - just a general rant!
I agree, especially on a patch release... it totally threw me too.
Thanks lee, will give this a try next.
Just ran a small test and this worked a treat
$ancestorOrSelf/ancestor-or-self::Container//ContainerItem
Thanks Lee.
My XLST-skills arew quite rusty.. i need to go further up the tree, but cant figure it out...?! :-/
I'm tring something like this
$ancestorOrSelf/ancestor-or-self::* [@level = 1]/Products/*
.. but don't get any results...
Any insights?
/ulrich
-- update --
I figured it out.. ;)
is working on a reply...