I've just updated Umbraco from version 4.5.0 to 4.5.2 and everything worked fine apart from items which use GetMedia. I've used xsl:copy-of to try and see what is output and it was as follows:
This was the html produced rather that in the OP which was the output from Firebug.
Well simply appending /umbracoFile returned the image. However, I don't fully understand why.Is there a config setting which would mean that I can use "/Image/umbracoFile"? It would really save me from having to change the 4.5.0 which was using that xPath.
I believe when 4.5.0 first came out you had to use GetMedia(.....)/Image/umbracoFile, but in 4.5.1 or 4.5.2 they fixed it so it's just GetMedia(....)/umbracoFile. I don't remember the reasoning or exact issue though
Thanks for getting back to me. I'll accept your answer for lack of better ones :) but I was hoping there would have been a config change I could have used so that my previous code would have worked but I guess not.
Update from 4.5.0 to 4.5.2 problem with GetMedia
Hi,
I've just updated Umbraco from version 4.5.0 to 4.5.2 and everything worked fine apart from items which use GetMedia. I've used xsl:copy-of to try and see what is output and it was as follows:
<img path="-1,1473,2261" nodetypealias="Image" writername="Administrator" urlname="bookatable" nodename="Book a table" updatedate="2010-09-06T09:45:27" createdate="2010-09-06T09:29:11" sortorder="4" template="0" nodetype="1032" writerid="0" level="2" parentid="1473" version="2db44eee-4524-49e7-b592-70352dd61296" id="2261"><umbracofile>/media/78133/book-a-table.gif</umbracofile><umbracowidth>176</umbracowidth><umbracoheight>97</umbracoheight><umbracobytes>13235</umbracobytes><umbracoextension>gif</umbracoextension><alttext></alttext><img width="" height="" alt="" src="">
So far so good. However as soon as I add /Image or /Image/umbracoFile, nothing gets returned.
Any ideas?
David
This was the html produced rather that in the OP which was the output from Firebug.
Well simply appending /umbracoFile returned the image. However, I don't fully understand why.Is there a config setting which would mean that I can use "/Image/umbracoFile"? It would really save me from having to change the 4.5.0 which was using that xPath.
Hi David,
I believe when 4.5.0 first came out you had to use GetMedia(.....)/Image/umbracoFile, but in 4.5.1 or 4.5.2 they fixed it so it's just GetMedia(....)/umbracoFile. I don't remember the reasoning or exact issue though
-Tom
Hi Tom,
Thanks for getting back to me. I'll accept your answer for lack of better ones :) but I was hoping there would have been a config change I could have used so that my previous code would have worked but I guess not.
Thanks,
David
is working on a reply...