Custom Data Type for multi-select drop down - how to extend user control wrapper?
I have created a new Data Type because I wanted a multi-select drop down that populates itself from either a CSV list or the database with specific value/text options, so I extended IUsercontrolDataEditor and created it.
The control itself works fabulously. The problem I have is that, because it extends IUsercontrolDataEditor, we create it in umbraco using "User control wrapper" which doesn't give us any additional parameters.
Is there a way to extend the "user control wrapper" data type to accept custom properties? Couldn't find a way. Thank you
Highjacking your thread, but how can i find where a usercontrol wrapper is populating a dropdown list that is a document type property? We have a language selection list and the values of the options are incorrect and when saved cause the home nodes to break due to an incorrect language identifier.
Trying to reverse enginner this situation so I can fix.
Custom Data Type for multi-select drop down - how to extend user control wrapper?
I have created a new Data Type because I wanted a multi-select drop down that populates itself from either a CSV list or the database with specific value/text options, so I extended IUsercontrolDataEditor and created it.
The control itself works fabulously.
The problem I have is that, because it extends IUsercontrolDataEditor, we create it in umbraco using "User control wrapper" which doesn't give us any additional parameters.
Is there a way to extend the "user control wrapper" data type to accept custom properties?
Couldn't find a way.
Thank you
Comment author was deleted
Yeah please check data editor settings
Basicly it's adding properties and marking them with the attribute
http://www.nibble.be/?p=97
Comment author was deleted
Different types available out of the box (defaults to a simple textbox) also possible to create custom types http://www.nibble.be/?p=96
Comment author was deleted
And for more details on how to create custom datatypes as easy as possible I woudl recommend watching http://www.nibble.be/?p=101
Perfect!!
Thank you!!!
Incidentally, is there a FilePicker setting type (of tpye IDataEditorSettingType)?
Sure there should be but can't find it
Comment author was deleted
Those are all the default ones http://umbraco.com/media/182981/WindowsLiveWriter_NewinJUNODataEditorSettings_10645_image_8.png
No upload but there is a Path picker
All default types can be found in the umbraco.editorControls.SettingControls namespace (need reference to umbraco.editorControls.dll)
Comment author was deleted
And media picker is also available so if you store file in media library...
Comment author was deleted
And should be pretty easy to create an upload one if you use this as an example http://www.nibble.be/?p=96
Worked well!
It's funny how these pages don't show up when I google for stuff.
Thanks again!
Comment author was deleted
Sweet glad I could help :)
Highjacking your thread, but how can i find where a usercontrol wrapper is populating a dropdown list that is a document type property? We have a language selection list and the values of the options are incorrect and when saved cause the home nodes to break due to an incorrect language identifier.
Trying to reverse enginner this situation so I can fix.
Thanks!
is working on a reply...