Updated CPalm Multiple Page Picker for V3 + bugfix
Published on 14. June 2007 inInspired by this post on th umbraco forum (and the fact that I needed it) i downloaded the source for Christian Palms excellent Multiple Page Picker Via Source, and fixed it for V3 RC2 the way that Niels had so excellently described how to do in his screencast.
I also fixed a little bug in the datatype, that caused a null refference exception when saving a page without putting any items in the "selected" box. It would still work, but right after the "publish" the tabs would get mixed up in the umbraco layout because the error was written out in the html source.
So, here are the download links:
Binaries: v3_MultiplePagePickerViaSource_install_01.zip
Source: V3_multiplepagepickerviasource_source_01.zip
Enjoy :-)
Related posts
Comments
Comments disabled
Comments are disabled for this post.

On 27. June 2007 by Paul Groves
Thanks! Works great.
On 12. September 2007 by Søren Sprogø
Any plans on making a MultipleMediaPicker too?
On 26. November 2007 by Len
Thank you, this one was really a blocker for moving to v3
On 03. January 2008 by Alex R.
Hi Morten,
I'm getting a javascript error when using your updated Multiple Page Picker for V3.
I'm using umbraco v 3.0.3 (Assembly version: 1.0.2825.21247)
The error I'm getting does not allow items to be moved from the 'Selected' box back to the 'Not Selected' box. However I can move items from the 'Not Selected' box to the 'Selected' box.
Hope you can help.
Thanks,
Alex.
On 03. January 2008 by Alex R.
Morten,
To resolve the javascript error mentioned above I had to change the following line (in MultiplePagePickerViaSource.js) from:
function CPalmCompareOptionText(a, b)
{
return parseInt(a.text, 36) - parseInt(b.text, 36);
}
to
function CPalmCompareOptionText(a, b)
{
return parseInt(a.value, 36) - parseInt(b.value, 36);
}
On 03. January 2008 by Morten Bock
Great stuff Alex. I have actually seen this error, but only when the items contained special characters. I will try and put this in to the download as soon as possible.
On 12. February 2008 by Dan
I'm having issues with the example xslt. It won't save. I get the following error:
System.Xml.XPath.XPathException: Function 'umbraco.library:NiceUrl()' has failed. ---> System.OverflowException: Value was either too large or too small for an Int32.
Is {umbraco.library:NiceUrl($page/@id)} the correct way to pass this id to NiceUrl?
If I change the $page/@id to a page id then it works fine.
Cheers,
Dan