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:
parent
6179fcce8c
commit
71279181b2
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue