Copied to clipboard

Flag this post as spam?

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


  • Piquet 14 posts 21 karma points
    Oct 09, 2009 @ 05:12
    Piquet
    0

    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"));

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Oct 09, 2009 @ 09:48
    Dirk De Grave
    0
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies