Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 304 posts 650 karma points
    Feb 28, 2010 @ 18:48
    Paul Sørensen
    0

    Create new Data type

     

    H

    I have tried to create a new data using the MacroPicker as an example. I have copied the dll to the bin folder and created a new datatype in the Developer section. I expect to see my new Formular Pciker in the Render Control list but I don't.

    What am I missing ?

    Version 4.0.2.1

    Thanks

    Paul S

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Feb 28, 2010 @ 19:15
    Morten Bock
    0

    Hmm, difficult to say without being able to see the code.

    Are you inheriting the same classes and interfaces? Did you assign your own guid to your datatype?

  • Ron Brouwer 273 posts 768 karma points
    Feb 28, 2010 @ 19:23
    Ron Brouwer
    0

    Try to add a breakpoint in the datatype.

    When an error occours Umbraco ignores it (using try catch with no handling).

    Ron

  • Simon Justesen 436 posts 203 karma points
    Feb 28, 2010 @ 19:28
    Simon Justesen
    1

    Hi Paul, 

    Are you using the usercontrolGrabber method or the "3-classes" method? 

    Perhaps you can get some ideas by checking these pages:

    http://www.nibble.be/?p=51
    http://www.nibble.be/?p=24
    http://www.nibble.be/?p=62 <--- my recommended approach on umb >= 4.0.1

  • Paul Sørensen 304 posts 650 karma points
    Mar 01, 2010 @ 08:53
    Paul Sørensen
    0

    Hi

    I use the 3 classes method and I have created a new GUID but I forgot to change the name of my new type so it was actually in the list. So the conclusion is that all you need to do in order to create a new datatype is to implement the classes and copy the dll to the bin folder. It then pops up in the list of Render Controls when you create a new Data Type.

    Thanks for the help, guys.

    /Paul S

Please Sign in or register to post replies

Write your reply to:

Draft