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.
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
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
is working on a reply...