Forums / Setup & design / section-exclude / loop / max problem

section-exclude / loop / max problem

Author Message

Vivienne van Velzen

Wednesday 22 October 2003 3:22:10 am

Hi,

I'm trying to show a maximum of 6 news articles that have their (self-defined) 'visible' flag on. This is my code:

{section name=News max=6 loop=fetch(...)}
{section-exclude match=$:item.data_map.visible.content|not()}
{$:item.name}<br>
{/section}

From the documentation I gathered that the iteration count will not be advanced if the loop item is discarded. In my output however, this is not the case. The non-visible news-items are still counted, so a wrong number of news-items is shown.
Can anyone help?
TIA,

Vivienne

andreas spahr

Thursday 23 October 2003 3:38:00 am

Hi,
can you explain me, where you get the count value from?