Forum
Image source has created a link?
I am working on a list of Items which contained an oiptional image. The code was (sort of) working but now the page source shows a link to an odd page rather then a link to the perch resources file. Please help.
See :- https://www.feelgood-factor.co.uk/newsoffersfgfwithcms.html
My template:-
<li>
<h4>
<perch:content id="eventheading" type="text" label="event heading" textile="true" editor="markitup" maxlength="150" />
<br /><br />
</h4>
<p>
<perch:if exists="largeimage">
<img src="<perch:content id="largeimage" type="image" label="large leaflet size image" width="780" height="500" output="h" />"
alt="<perch:content id="largeimagealt" type="text" label="brief description of image" />" class="image17" />
</perch:if>
<perch:if exists="mediumimage">
<img src="<perch:content id="mediumimage" type="image" label="image for news page" width="300" height="300" output="h" />"
alt="<perch:content id="mediumimagealt" type="text" label="brief description of image" />" class="image8" align="left"/>
</perch:if>
<perch:if exists="smallimage">
<img src="<perch:content id="smallimage" type="image" label="optional small image for home page" width="120" height="120" output="h" />"
alt="<perch:content id="smallimagealt" type="text" label="brief description of image" />" />
</perch:if>
</p>
<p>
<perch:content id="eventdetail" type="text" label="event detail" textile="true" editor="markitup" />
</p>
</li>
Thanks karen
You have
output="h"
set on the image tag. That makes it output the height of the image - not useful here!Remove the
output
attribute.Ok, that seems to have fixed it.
Thanks Karen