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
- 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)
)
)
-> 12If 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8414
- Created
- Thursday 25 May, 2023 15:29:29 UTC
by Kevin Doyle - LastModif
- Thursday 25 May, 2023 15:29:29 UTC