Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Support / Show data only if my list contains more than 3 items.

foxhound
#40841 2015-04-29 08:15

Yes, both tags are there but they will not let you output data in the list if there are more than 3 items in it.
In Genoa LIST_ROW_COUNT was used to count how many items were in the list but with Sienna that count now shows how many times the page was viewed. Of course that is of no use to me anymore cause I need to know how many items are in the list.

{LIST_ROW_NUM} gives the number of a specific item in the list, but again that does not tell me how many items there are in the currently displayed list.

I want to show a message if the current list viewed has at least 2 and more than 3 items. And no matter what I tried with the available tags that simply is not possible anymore. Or at least I can not figure it out.
 

Maybe this clears up what I want to do?

MY LIST
=====

ITEM 1

ITEM 2

my custom message shows cause there are at least 2 items and more than 3 items in the list

ITEM 3

=====

 

Or:

MY LIST
=====

ITEM 1

ITEM 2

=====

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />