Forum

Thread tagged as: Question, Addons

Repeaters in Blog?

Yo, am adding a small gallery of images in Blog posts... which is really a project item for a portfolio. Does the new Blog use repeaters yet? (I confess, have not read all the new docs yet)

Not keen on still hardcoding positions for photos... pulling in a gallery separates the process of population.

If this is not implemented yet, it would be a great add on.

Stuart Farrell

Stuart Farrell 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Repeaters are not part of the API so are not available in Blog. They are a feature of Perch Content.

If you are creating a portfolio then the Blog App really isn't our suggested solution. If you use content you get repeaters.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, repeaters are a feature of the Content app.

Hmm... It's a portfolio of services/project examples with categories, tags, photos, descriptions, etc. Blog is more powerful with filtering and categories etc. We also rename "Blog" to "Projects" etc... makes it really easy for clients to edit.

We have coded our way into corners in the past with complex content pages and repeating regions, single page list and detail generation, listing, next/prev etc. One change by the client and you are left wishing you has used Blog, like "can we move this to another section or show in more than one section/category?".

Will just use some hard coded positions for images and just add if checks. Makes perfect sense to me to allow repeating regions for Blog posts.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Perch now has the same Categories as blog in the unified Categories App, specifically because of requests like this. Content really is more powerful than blog at this point. Unless you need the ordered by date feature of a Blog/News application then our suggestion is to use Perch Content.

Hi Drew and Rachel

Have you any plans to add this, I have many customers that want extra images in the Blog app, you can get around it if you know how many they want.

 <perch:if exists="image">   
        <div class="img">
     <a href="#"><img src="<perch:blog id="image" type="image" width="654" label="Blog Image" />" alt="<perch:blog id="postTitle" />" /></a> 
      </div><!--end Img -->
      </perch:if>
 <perch:if exists="image2">   
        <div class="img">
     <a href="#"><img src="<perch:blog id="image2" type="image" width="654" label="Blog Image 2" />" alt="<perch:blog id="postTitle" />" /></a> 
      </div><!--end Img -->
      </perch:if>
       <perch:if exists="image3">   
        <div class="img">
     <a href="#"><img src="<perch:blog id="image3" type="image" width="654" label="Blog Image 3" />" alt="<perch:blog id="postTitle" />" /></a> 
      </div><!--end Img -->
      </perch:if>

Not a big deal but would be very handy.