Loading...
 
Skip to main content

Counting items in Items List Doesn't Work due to lack of , between items

Status
Open
Subject
Counting items in Items List Doesn't Work due to lack of , between items
Version
25.x
Category
  • Bug
Feature
Advanced Rating Language / Mathematical calculation tracker field
Resolution status
New
Submitted by
Kevin Doyle
Lastmod by
Kevin Doyle
Rating
(0)
Description

Taken from: https://doc.tiki.org/Calculations
"You can use it with spli-list to count the number of items in a list or in an item-link (should work with item-list dynamic item-list). "
EXAMPLE GIVEN
Let say I have an item-link permanameBooks with 12 items linked.
(count
(split-list
(content permanameBooks)
(separator ,)
(key a)
)
)
-> 12

If you do a (concat permanameBooks) it just gives ArrayArrayArray so split list cannot work

I am going to try and add the , by using the format option with %0,

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8414
Created
Thursday 25 May, 2023 15:29:29 UTC
by Kevin Doyle
LastModif
Thursday 25 May, 2023 15:29:29 UTC


Show PHP error messages