Forum

Thread tagged as: Question, Problem, Field-Types

Perch Item Index use in Region Children

Hey guys – been using Perch for a while, superb CMS. Got a little query about item index.

I want to use...

<perch:content id="perch_item_index" /> 

on a region's individual child page. I have a listing/region with multiple items – when placing the perch tag on the listing page itself, everything works accordingly.

However, when placed within a child page itself, it seems to lose the context and only spits out '1' for every entry. Am I doing something wrong, or is this simply not a part of the feature?

Cheers! Bryan.

Bryan James

Bryan James 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_item_index is the position of the item in the current set being templated. It always starts at one, and counts up for however many items you are showing at that very time.

If you need something more like an ID, you can use id="_id"