Can I get a datatypes id from it's name via the API?
I need to get a datatypes id via it's name (in this case it is a uCompnent drop down list).
I need this so that I can get it's list of prevalues using the umbraco.cms.businesslogic.datatype.PreValues.GetPreValues(int id) method so I can display them in a macro.
Although datatypes are nodes I don't believe I can access them via the node factory classes. Can anyone help out with this or is there an easier way of retrieving a datatypes prevalues via the API?
Can I get a datatypes id from it's name via the API?
I need to get a datatypes id via it's name (in this case it is a uCompnent drop down list).
I need this so that I can get it's list of prevalues using the umbraco.cms.businesslogic.datatype.PreValues.GetPreValues(int id) method so I can display them in a macro.
Although datatypes are nodes I don't believe I can access them via the node factory classes. Can anyone help out with this or is there an easier way of retrieving a datatypes prevalues via the API?
is working on a reply...