Forum

Thread tagged as: Question, Problem

Blog Template Changes?

Before you added the Assets section to Perch the "post_in_list.html" template used to have the following line of code that would automatically resize and crop the uploaded image. With the addition of Assets, where does the code exists for automatically resizing images?

Old Perch Code ---------------------------------------------

<li class="hentry">
    <h2><a href="post.php?s=<perch:blog id="postSlug" />" rel="bookmark" class="entry-title"><perch:blog id="postTitle" /></a></h2> 
   <perch:if exists="image"><img src="<perch:blog id="image" type="image" width="430" height="335" crop="true" />" alt="<perch:blog id="postTitle" />" /></perch:if>
Kelly Crossley

Kelly Crossley 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

It hasn't changed. Add any images to your master template (post.html) at the sizes that you want, then use them in any other templates. It's exactly as it was before.

Docs: https://docs.grabaperch.com/addons/blog/template-tags/

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Iain

you seem to have replied to an old thread. Please post a new message with full details of your own issue so we can help you.