From: Kyle Stone <kylenstone@gm...> - 2010-05-07 18:22:07
I'm building a template to publish information collected from a form as a
"Case Story" on my website.
Within Template:CAOCaseStory, I'm attempting to pass properties to
Template:InfoBox, which will only display the properties (and surrounding
markup) if they exist.
I'm trying to use #ifexist to determine whether or not the user uploaded an
image in the form:
1. in Form:CAOCaseStory, image is gathered: *Image:
2. In Template:CAOCaseStory, image is declared
3. Template:CAOInfoBox checks to see if image exists, displaying alternative
if it doesn't:
My attempt failed. Currently, every page displays CAO_logo.png, regardless
of whether an image was uploaded. Have a look:
Where am I going wrong? (Warning: there could be multiple issues. I
haven't coded for a long time.)
Get latest updates about Open Source Projects, Conferences and News.