Hi guys,
I wanted to know how can you access Datatype API in Umbraco?
Should be very easy one :) but I just can't find it.
Here is why I want to do it:
1) I created new data type that is Umbraco.DropDownMultiple
2) It has a list of prevalues that I added to that control
Now:
I am in razor template, And I would like to access a list of those prevalues that I created, in order to avoid hardcoding, think this should be farely easy task. But I just can't find a namespace/right API call.
Hi Dennis! :-)
Thanks allot for lighting-fast response, that is exactly what I was looking for! :-)
Will take a better look at the links... thanks for sharing great resource :-)
Datatype API
Hi guys, I wanted to know how can you access Datatype API in Umbraco? Should be very easy one :) but I just can't find it.
Here is why I want to do it: 1) I created new data type that is Umbraco.DropDownMultiple 2) It has a list of prevalues that I added to that control
Now: I am in razor template, And I would like to access a list of those prevalues that I created, in order to avoid hardcoding, think this should be farely easy task. But I just can't find a namespace/right API call.
Appreciate for help! :)
Hi Dmitrij :-)
Is this what you are looking for. DataType Service.
https://our.umbraco.org/documentation/reference/management/services/DataTypeService
You can find the list of all the available services here: https://our.umbraco.org/documentation/reference/management/services/
Hope this helps,
/Dennis
Hi Dennis! :-) Thanks allot for lighting-fast response, that is exactly what I was looking for! :-) Will take a better look at the links... thanks for sharing great resource :-)
is working on a reply...