Copied to clipboard

Flag this post as spam?

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


  • Laurent Lequenne 120 posts 245 karma points
    Apr 06, 2011 @ 15:50
    Laurent Lequenne
    0

    List of datatypes

    SELECT
        umbracoNode.id, umbracoNode.trashed, umbracoNode.parentID,
        umbracoNode.nodeUser, umbracoNode.[level], umbracoNode.path,
        umbracoNode.sortOrder, umbracoNode.uniqueID, umbracoNode.text,
        umbracoNode.nodeObjectType, umbracoNode.createDate
    FROM
        umbracoNode INNER JOIN cmsDataType ON umbracoNode.id = cmsDataType.nodeId

    This is the SQL Function to retrieve the list of datatypes used... My question is  : why isn't there a way to find a function to get that list ! I'm really pissed of ! If you need to display this list in the CMS, WHY IS IT NOT POSSIBLE TO GET THAT LIST with a simple call to a simple F**** function !

    How portable is it to write my own function ? I'm losing hours and hours just to find things that exists or not, that doesn't work at all, that are implemented as apes, or whatever ...

     

  • Laurent Lequenne 120 posts 245 karma points
    Apr 06, 2011 @ 15:53
    Laurent Lequenne
    0
    foreach (DataTypeDefinition dt in DataTypeDefinition.GetAll( ))

    OK FOUND !

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Apr 06, 2011 @ 16:07
    Lee Kelleher
    2

    Hi Laurent,

    I can understand a developer getting frustrated by the lack of documentation, or struggling to find the right API call - it is frustrating!

    For me, when I learned my way around the Umbraco API, I literally sat there with Reflector open, searching for the various API calls - figuring out how it all worked. But that takes time and effort.  Aside from that, it was the community & forum that helped me with other problems.

    No one likes F-bombs or rants... so if you need help, then just ask - seriously we all love to help here.

    Cheers, Lee.

    PS. We've got some groovy XsltExtensions in uComponents... take a look, they might help?

  • Laurent Lequenne 120 posts 245 karma points
    Apr 06, 2011 @ 16:30
    Laurent Lequenne
    0

    I'm doing the same with the original source code open... I should have started with that... Google didn't helped, and the search on umbraco just found 2 items that has nothing to do with "List of datatypes".

    I spent a lot of time with reflector to extract piece of of for other components, or just to fix bugs of those components. It's a full time job just to get the pieces together.. .But I'm getting through my first page in a extra section of umbraco... 3 days to find info and just a few minutes of coding :-)

  • 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