Is there any way to modify this to restrict to a particular document type? Is that something I'd have to modify the source code for, or has someone done this already?
That's the main reason why this DataType has version 0.6 instead of 1.0: I planned to add datatype restriction and, in general, make it fully compatible with the UltimatePicker, but I had no time to develop these features and I don't need them at the moment..
One of the main problem is related to the way Umbraco handles its Trees: I couldn't find a simple and unobstrusive way to change the default behaviour within the standard API. I seem to recall that Umbraco binds trees to apps and uses a kind of factory to instantiate the correct object for the selected app: in this case there is no app, so I should have messed with a lot of duplicated code just to use my class (mainly tree.aspx, IIRC).
If you really need it, it should not be too difficult to add such a feature. (Of course I would be happy to add your mods to this project...)
Restrict to particular document type
Is there any way to modify this to restrict to a particular document type? Is that something I'd have to modify the source code for, or has someone done this already?
Thanks!
James
Not with this plugin, but you can do it with the "ultimate picker" that's part of umbraco core.
Dan
That's the main reason why this DataType has version 0.6 instead of 1.0: I planned to add datatype restriction and, in general, make it fully compatible with the UltimatePicker, but I had no time to develop these features and I don't need them at the moment..
One of the main problem is related to the way Umbraco handles its Trees: I couldn't find a simple and unobstrusive way to change the default behaviour within the standard API. I seem to recall that Umbraco binds trees to apps and uses a kind of factory to instantiate the correct object for the selected app: in this case there is no app, so I should have messed with a lot of duplicated code just to use my class (mainly tree.aspx, IIRC).
If you really need it, it should not be too difficult to add such a feature. (Of course I would be happy to add your mods to this project...)
Marco
Okay, thanks guys. Will take a look at how the UltimatePicker does it and see if I can make it into treeview form. Will let you know how I get on!
Cheers
is working on a reply...