Using version 7.5 (if i recall correctly) of Umbraco. I have some XSLT which im trying to configure to get the image that was selected when the page was published.
Now which ever way i do this im getting a range of errors i.e, value was too large or small for int32 or the src value is empty (when i view in page source) but if i hard code a value (to test that a value is being pulled across) then i do see it.
UserImage - is the field name in my doc type which has a media picker attached to it so the user can select an image.
Help with getting image from media
Using version 7.5 (if i recall correctly) of Umbraco. I have some XSLT which im trying to configure to get the image that was selected when the page was published.
Here is my code
Now which ever way i do this im getting a range of errors i.e, value was too large or small for int32 or the src value is empty (when i view in page source) but if i hard code a value (to test that a value is being pulled across) then i do see it.
UserImage - is the field name in my doc type which has a media picker attached to it so the user can select an image.
Appreciate any help on this.
Hi J,
I think that you might find the solution in this previous post:
https://our.umbraco.org/forum/developers/xslt/75621-xslt-getmediaumbracofile-returns-new-schema#comment-241917
As I can see it you need to specify /src in the img-tag:
/Søren
is working on a reply...