Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • andy_rose 91 posts 117 karma points
    Jul 29, 2011 @ 14:22
    andy_rose
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft