Hello,
I would like to conditionally insert an image into Page.ss based on the value of $URLSegment and the presence of the image file:
First problem:
I am trying to generate the HTML to display the image and I have inserted the following code into Page.ss.
<img class="center" src="assets/images/$URLSegment.jpg" alt="$Title" width="520" />
However, $URLSegment and .jpg is replaced with blank, ie. src=""assets/images/"
Second problem:
How do I detect the existence of this file in Page.ss so as to only insert the relevant HTML if the file exists?
Cheers,
Gary