Forum

Thread tagged as: Question

Broken image icon in FF

Hey,

I'm using this code in a template, if no image is added a broken image link appears in FF. Anyone know how to fix this?

<perch:if exists="left-twin-col-image"> 
          <img src="<perch:content id="left-twin-col-image" type="image" label="Image left" />" />
            </perch:if>

Thanks, J

James Holmes

James Holmes 0 points

  • 5 years ago

That has no error I can find. Have you looked at the html source to see what's being output?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Dashes aren't legal in a Perch ID, so that might be something to try - switch them to underscores.