Which Umbraco Version are u using and what is the output of your typedMultiMediaPicker -variable? If it is a list of Ids, you must split the String and the url can be read by this
I see here that you are asking for album.hasValue and album.Content.GetPropertyValue I think you should specifiy your variable in both cases. Is it album.content or just album?
Media picker
Hello,
I am having issue with media picker. it is not displaying the images. Please find code below :
Can someone please help with the above.
Thanks,
kusum
Which Umbraco Version are u using and what is the output of your typedMultiMediaPicker -variable? If it is a list of Ids, you must split the String and the url can be read by this
I am using : 7.10.0
The problem is that the picker itself is not working I am not able to get the id of the folder i picked.
I see here that you are asking for album.hasValue and album.Content.GetPropertyValue I think you should specifiy your variable in both cases. Is it album.content or just album?
Here is a another question to this topic
https://our.umbraco.com/forum/developers/razor/46969-Displaying-Images-from-Multiple-Media-Picker
Hi K
You use a mix of dynamically typed variables and strongly typed and it's not gonna work.
Let's rewrite this code to strongly typed, something like that should give us at least understandable exceptions:
Best,
Alex
Thanks Alex.
I have tried the above code but still no image is displaying and there is no error.
what is the result of typedMultiMediaPicker and item . Is typedMultimediaPicker null?
{ if(album.HasValue("pickAnAlbum")) {
}
I get nothing when I display typedMultiMediaPicker
Maybe it has something to do with
value converters enabled/disabled?
See here for more information
https://our.umbraco.com/forum/using-umbraco-and-getting-started/85598-getting-image-url-from-media-picker-not-working-in-76
https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/multinode-treepicker
The settings are ok.
When I do same thing on a page like the below codes, it works. But if I loop it no more works.
How many images did you select in Umbraco?
Am I right that "pickAnAlbum" is a media folder? or it's a list of images?
I have picked a folder containing multiple images
is working on a reply...