Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 939 posts 2061 karma points
    Oct 17, 2011 @ 09:32
    Nigel Wilson
    0

    Custom Datatype & Image Cropper

    Hi there

    I have taken an initial look through the database and also done some "Googling" - she is my friend after all (Google is a girl isn't she ?)

    Can anyone shed light on where defined image crops for Image Cropper are stored ?

    I am thinking of creating a custom datatype (Dropdown list most probably) that lists all defined image crops.

    Look forward to some feedback.

    Cheers

    Nigel

  • Nigel Wilson 939 posts 2061 karma points
    Oct 18, 2011 @ 06:41
    Nigel Wilson
    0

    OK - have worked out that the crops are saved in the cmsDataTypePreValues table - the following sql returns a string which contains the crop data

     

    SELECT value FROM cmsDataTypePreValues INNER JOIN umbracoNode on cmsDataTypePreValues.datatypeNodeId = umbracoNode.id WHERE umbracoNode.text = 'Image Cropper'

    Obviously hard coding the umbracoNode.Text isn't such a good idea so will look to provide an option to name the data type that is to be referenced.

    If anyone has suggestions on implementation I'd love to hear from you.

    Nigel


     

     

  • 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