Thread tagged as: Question

Item list column IDs

Hi Drew,

Is it possible to show the count (total number of items) of a repeater in the Item list column?

Nick Loat

Nick Loat 0 points

  • 5 years ago

You can use within the repeater

<perch:content id="perch_item_count" />

Although that will repeat the output for every repeater item, to stop this you could place it within <perch:before></perch:before> or <perch:after></perch:after> tags

Thats not what I'm trying to do… I'd like to show the number of items in a repeater in the item list column for the repeaters id show that the admin can see how many items it contains (its purely backend)

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's not an option, no. To do that we'd need to load up each entry in the listing and count the repeater, which would be really expensive for long lists.

Cheers Drew. I susepected that it wasn't possible, but thanks for confirming.