Bug 24390: Add item total to rotating collections

Displays the number of items in a rotating collection.

TEST PLAN:
1. Set up some rotating collections and add some items to them.
2. No good way to see how many total items are in a given collection.
3. Apply patch
4. Look at collections again and you should see 'Total Items: X'
5. Make sure it is counting the total number of items correctly.

Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Lucas Gass 2020-01-09 17:07:59 +00:00 committed by Martin Renvoize
parent 6179fcce8c
commit 71279181b2
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -94,6 +94,10 @@
<div>
<h2>Items in <i>[% colTitle | html %]</i></h2>
[% IF ( collectionItemsLoop ) %]
[% FOREACH collectionItemsLoo IN collectionItemsLoop %]
[% totalItems = loop.size %]
[% END %]
<h3>Total Items: [% totalItems | html%]</h3>
<table>
<tr>
<th>Title</th>