How to load Umbraco data type in custom dashboard control (Dark magic?)
Hi,
I'm trying to figure out how to load any given Umbraco data type in one of my own dashboard controls.
E.g. if I have a drop down list data type or content picker or whatever that I need to use in my dashboard control with all the settings and stuff.
How do I do that??
Umbraco does it everywhere but must be doing it using some kind of dark magic, because there's apparently no code in the source code that have that specfic responsibility.
How to load Umbraco data type in custom dashboard control (Dark magic?)
Hi,
I'm trying to figure out how to load any given Umbraco data type in one of my own dashboard controls.
E.g. if I have a drop down list data type or content picker or whatever that I need to use in my dashboard control with all the settings and stuff.
How do I do that??
Umbraco does it everywhere but must be doing it using some kind of dark magic, because there's apparently no code in the source code that have that specfic responsibility.
/Rune
Here is an example for MNTP: http://our.umbraco.org/wiki/reference/code-snippets/use-mntp-on-a-usercontrol
This topic also has some nice examples: http://our.umbraco.org/forum/developers/extending-umbraco/6863-Datatype-on-normal-page-or-UserControl
Jeroen
Hi Jeroen,
Looks promising. Can see I'm not the only one having had this problem. Not the easiest thing to figure out.
I will try it and see if that solves all my future problems :)
/Rune
AND IT WORKS. HAHAHAHAHAAH, IT'S ALIIIIIVE.
Thanks a bunch Jeroen. Three simple lines of code.
The above code loads a simple Dropdownlist data type. I expect to be able to do the same with a bunch of other data types.
/Rune
is working on a reply...