Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • James Crowley 17 posts 38 karma points
    Sep 18, 2009 @ 16:37
    James Crowley

    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?



  • dandrayne 1138 posts 2262 karma points
    Sep 18, 2009 @ 17:22

    Not with this plugin, but you can do it with the "ultimate picker" that's part of umbraco core.


  • Marco Lusini 176 posts 1370 karma points
    Sep 19, 2009 @ 08:32
    Marco Lusini

    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...)



  • James Crowley 17 posts 38 karma points
    Sep 20, 2009 @ 14:20
    James Crowley

    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!


Please Sign in or register to post replies

Write your reply to: