In code - how do I get the datatypeId from a datatype name?
I want to get the list of prevalues from a datatype - however I need the id. Unfortunately, the nodeid for the list may change depending on the parts that are installed with the application. The datatype name however will always be consistent. Is there anyway to take the name of the datatype and use it to look up the id?
I'm thinking something along the lines of var prevalueList = umbraco.library.GetPrevalues(umbraco.cms.businesslogic.datatype.GetIdFromAlias("category checklist"));
In code - how do I get the datatypeId from a datatype name?
I want to get the list of prevalues from a datatype - however I need the id. Unfortunately, the nodeid for the list may change depending on the parts that are installed with the application. The datatype name however will always be consistent. Is there anyway to take the name of the datatype and use it to look up the id?
I'm thinking something along the lines of
var prevalueList = umbraco.library.GetPrevalues(umbraco.cms.businesslogic.datatype.GetIdFromAlias("category checklist"));
Hi Piquet,
Hope this thread may help: http://our.umbraco.org/forum/developers/api-questions/2867-Get-custom-dropdown-datatype-values
Cheers,
/Dirk
is working on a reply...