Forum
Image problem with list detail
In my listings the image width and crop, or pretty much all the attributes won't work. I get the original image with the origin width and height. On detail page everything is OK. What have I done wrong? This is my code:
<div class="salong-oversikt">
<a href="salong.php?s=<perch:content id="slug" type="slug"/>">
<perch:content id="salongbilde" type="image" width="600" height="400" crop="true" output="tag"/>
<h2><perch:content id="title" type="text"/></h2>
</a>
</div>
<h1><perch:content id="slug" for="title" type="slug" suppress="true"/></h1>
<div id="undersider-top"><perch:content id="salongbilde" type="image" width="1000" label="Bilde av salongen" output="tag"/></div>
<h1><perch:content id="title" type="text" label="Overskrift" required="true" title="true" /></h1>
You need to make sure the image is included at any sizes you want to use within your master template - which I guess is the detail template in this case.