My guess is that the $imageFolder never holds any value, due to miss-spelling or something similar. Some things you could test:
Check the macro parameter setup.
Put an xsl:if around GetMedia to test if $imageFolderId really contains any value before accessing GetMedia.
Print out the value of $imageFolder using value-of while debugging.
In media goto the folder and just click save on each image item dont need to change anything just try it and then reload your page see if the images turn up.
Problems with GetMedia and macro parameters
Hi
I'm having some difficulties with the GetMedia method, when using with a XSLT variable based on a number macro parameter.
[code]
[/code]
Does it only fail on validation when saving, but works in front end if you skip validation?
My guess is that the $imageFolder never holds any value, due to miss-spelling or something similar. Some things you could test:
Check the macro parameter setup.
Put an xsl:if around GetMedia to test if $imageFolderId really contains any value before accessing GetMedia.
Print out the value of $imageFolder using value-of while debugging.
anderstollestrup,
the images in the folder how were they uploaded was it manually one by one or massupload using zipupload or something like that?
Regards
Ismail
Hi
@daniel_l: I have tried to output the content of the variable $imageFolderId and it's the exact same value as my workaround: 1086!
@imayat12: I'm using manual uploaded images in the media section. Just created a folder (ID:1086), which contains there images.
/Anders
anders,
In media goto the folder and just click save on each image item dont need to change anything just try it and then reload your page see if the images turn up.
Regards
Ismail
is working on a reply...