Make the same listview (with other name) before you start this listview. In the first one you dont make any Output, but:
Code: Alles auswählen
<we:listview type="object">
<we:repeat>
<we:listview type="multiobject">
<?php $i = 0; ?>
<we:repeat>
<?php i++; ?>
</we:repeat>
</we:listview>
<we:repeat>
</we:listview>
Now you have i as number of entries. Alternatively you can make only one listview and use php ob_start(); to buffer the output, at once initializing and count up the counter:
Code: Alles auswählen
<?php ob_start(); ?>
<we:listview type="object">
<we:repeat>
<we:listview type="multiobject">
<?php $i = 0; ?>
<we:repeat>
<?php i++; ?>
</we:repeat>
</we:listview>
<we:repeat>
</we:listview>
<?php
$page = ob_get_contents();
ob_end_clean();
doSomething();
echo $i;
echo $page;
?>
But - are u sure it doesnt work? I will try it and give you feedback.