Copied to clipboard

Flag this post as spam?

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


  • Leif Harstad 8 posts 28 karma points
    Aug 01, 2011 @ 22:20
    Leif Harstad
    0

    Custom DataType, Using a DataTypeSetting Dropdown value with another DataTypeSetting...

    Hi Umbraco-genies,

    Here's my problem/challenge:
    I've a custom DataType using a usercontrol. It has 1 DataTypeSetting which is a DropDown of DocumentTypes.

    Now, after I choose a DocumentType value from this dropdown list (and click save maybe), I want to populate another DataTypeSetting dropdown list of all the Properties associated with the selected DocumentType.

    *And then of course store both selected values to that DataType.

     

    Any ideas / direction / solutions?

  • Leif Harstad 8 posts 28 karma points
    Aug 01, 2011 @ 22:28
    Leif Harstad
    0

    *Please note I can't edit or delete this post.

    What I meant was: DataEditorSetting and NOT DataTypeSetting!!

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Aug 01, 2011 @ 22:36
    Tom Fulton
    0

    I don't think it's really possible out of the box, but you could create your own DataEditorSetting with both controls on it (the Doctype & Property dropdowns).

    Also for a similar route and some inspiration see this thread, he created a custom DataEditorSetting that reads values from another DataEditorSetting:

    http://our.umbraco.org/forum/using/ui-questions/17046-Dynamic-prevalues-in-the-new-DataEditorSettings-in-461

    Hope this helps,
    Tom

  • Leif Harstad 8 posts 28 karma points
    Aug 01, 2011 @ 23:29
    Leif Harstad
    0

    Thanks for your direction Tom, I'll work on this for a bit and post my findings.

Please Sign in or register to post replies

Write your reply to:

Draft