Its all working great, but Ive came across an issue regarding the images.
If I change the image file associated with the media node, I loose the image inside the macro.
Ive checked that the media node has the same node id, node name, file path and image file name. The only thing that changes is the actual image.
Any ideas on how I could get the id of the "img" value and use that instead.
Image ID - Grid Macro
Hi, I've followed the great tutorial over at 24 days on inserting macros into the grid editor.
http://24days.in/umbraco/2014/grid-macros/
Its all working great, but Ive came across an issue regarding the images. If I change the image file associated with the media node, I loose the image inside the macro.
Ive checked that the media node has the same node id, node name, file path and image file name. The only thing that changes is the actual image.
Any ideas on how I could get the id of the "img" value and use that instead.
Thanks Martin
My macro script is
The Json from the macro
is working on a reply...