Copied to clipboard

Flag this post as spam?

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


  • Magnus Söderlund 19 posts 79 karma points
    Jan 17, 2014 @ 14:24
    Magnus Söderlund
    0

    New datatype using the html5 datalist?

    Hello.

    Im missing the functionality of allowing user-added values to my dropdowns as of right now. I've been asked to create a simple data-type where the editor is a textbox and a dropdown. So that users can supply their free text values if none of the dropdown values apply to the situation. However i just came across <datalist> (http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist) and it seems to be exactly what i need in a data editor. 

    Is there anyone who have made a data type using this? I've never actually created a data type at all. And i'm not certain where to begin using MVC. All examples ive found are using webforms.

    Anything pointing me in the right direction would be appreciated.

    Thanks in advance.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 19, 2014 @ 11:28
    Jeroen Breuer
    0

    Hello,

    What version of Umbraco are you using? If it's v6 it's best to stay with webform datatypes. These video's can help: http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/datatypes.aspx

    There are also some good blogposts:

    http://www.nibble.be/?p=99

    http://www.nibble.be/?p=97

    If you're using v7 you'll need to create a Property Editor (new name of datatype). This can help: http://umbraco.github.io/Belle/#/tutorials/CreatingAPropertyEditor

     

    Jeroen

     

  • Magnus Söderlund 19 posts 79 karma points
    Jan 20, 2014 @ 07:33
    Magnus Söderlund
    0

    Hello. 

     

    Yes i am using 6.*. But i am using Mvc as well and all guides cover webforms datatypes. Should i ute webforms as well for my datatype or is there a mvc way to do it?

     

    Also is it neccesary to compile it to a dll in a stand alone project or can i just create it in my umbraco installation project?

     

    Kind regards 

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 20, 2014 @ 12:08
    Jeroen Breuer
    0

    You can use MVC in a custom section in v6. Otherwise you can only use webforms for datatypes.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft