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.
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?
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.
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
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
You can use MVC in a custom section in v6. Otherwise you can only use webforms for datatypes.
Jeroen
is working on a reply...