use the dev tools to inspect the json posted to "PostSave" (or similar) in the backoffice. I don't think the focalpoint is being saved. I don't think it ever has in the grid editor ;)
You would have to load the image, and read the focalpoint from that
Mind you, the "image" saved in the media editor, is the url for the image, not the UDI :(
Custom Grideditor
Hi
I am making a custom GridEditor in V8
{ "name": "Thumbnail Image", "alias": "thumbImage", "view": "media", "icon": "icon-picture", "config": { "size": { "width": 200, "height": 200 } } }
But when it renders it does make use of the focus point. The rendered HTML is
I would expect something like ¢er=0,0638297872340425,0,943262411347518&mode=crop added to the URL.
Am I missing something or?
Best regards
Jimmy
hi, you would need to edit the view (media.cshtml), to have the focalpoint rendered :)
Hi Søren
Thanks for your answer.
If I look in media.cshtml there is already this code
So I would expect it to work out of the box?
can you have a look at what it being saved?
use the dev tools to inspect the json posted to "PostSave" (or similar) in the backoffice. I don't think the focalpoint is being saved. I don't think it ever has in the grid editor ;)
You would have to load the image, and read the focalpoint from that
Mind you, the "image" saved in the media editor, is the url for the image, not the UDI :(
Hi Søren
You are right, focalpoint is not saved in V8.
Here is the PostSave for that grid item.
}
If I do the exact same thing in V7, then I do get focalpoint
is working on a reply...