Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 939 posts 2061 karma points
    Oct 11, 2010 @ 01:47
    Nigel Wilson
    0

    Custom Data Type - Select List of Child Nodes

    Hey

    I was wondering if anyone has created a data type that automagically lists only the child nodes of the node.

    The scenario I have is a photographic competition with all entries stored within a Media folder.

    The media folder has a custom property defined (select list of all images within the folder) so that you can select 1 image as the winning entry, second place entry, etc.

    I am more than happy to roll my sleeves up and try to get to grips with writing my own custom control but thought I'd check here first.

    Thanks

    Nigel

     

  • Rich Green 2246 posts 4006 karma points
    Oct 11, 2010 @ 11:31
    Rich Green
    0

    Hi Nigel,

    You can do this using http://our.umbraco.org/projects/backoffice-extensions/tree-multi-picker which allows you to reference the currentPage in XPath (therefore, easy to grab the children of the node) 

    If you're using 4.5 i'm pretty sure you can do this using http://ucomponents.codeplex.com/wikipage?title=MultiNodeTreePicker&referringTitle=Documentation although I'm not sure how to access the currentPage variable, the source is available so it's certainly a good place to start rather than starting from scratch.

    Best of luck, let us know how you get on.

    Rich

  • Rich Green 2246 posts 4006 karma points
    Oct 11, 2010 @ 12:34
  • Nigel Wilson 939 posts 2061 karma points
    Oct 11, 2010 @ 18:49
    Nigel Wilson
    0

    Bingo - the Berto ultimate picker is bang on.

    Cheers Rich

    Nigel

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies