Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So I am using this code to display an image using the media picker. It works to display an image that a user selectes from the GUI in Umbraco: --------------------------------------- The problem occurs when an image is not selected. When you view the web page this error shows up on the page: Error parsing XSLT file: \xslt\CEPSubImage.xslt To get around this I have been making the fields mandatory, but that is just short-term. Desired behavior: If an image is selected display it on the site. If not, do nothing. If someone could help me with the XSLT, I'd appreciate it. Kuda.
One more xsl:if would do it as getmedia fails if the property is empty:
Well, on second thought I guess you could skip the
BINGO. Thanks for the snappy response. The one IF statement did the trick. Cheers
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
XSLT Media Picker
So I am using this code to display an image using the media picker. It works to display an image that a user selectes from the GUI in Umbraco:
---------------------------------------
The problem occurs when an image is not selected. When you view the web page this error shows up on the page:
Error parsing XSLT file: \xslt\CEPSubImage.xslt
To get around this I have been making the fields mandatory, but that is just short-term.
Desired behavior: If an image is selected display it on the site. If not, do nothing.
If someone could help me with the XSLT, I'd appreciate it.
Kuda.
One more xsl:if would do it as getmedia fails if the property is empty:
Well, on second thought I guess you could skip the
BINGO. Thanks for the snappy response. The one IF statement did the trick.
Cheers
is working on a reply...