How to get Pages Data Source items count from Repeater transformation

Vasyl Chepil asked on April 8, 2016 10:30

I'm using text/xml transformation in Repeater that is connected to Pages Data Source.

Is there any possibility to get Pages Data Source items count from Repeater's transformation or in content after field

Recent Answers


David te Kloese answered on April 8, 2016 10:33

Hi again,

I think you could use:

{% DataItemCount %}

David

0 votesVote for this answer Mark as a Correct answer

Vasyl Chepil answered on April 8, 2016 10:36

If Repeater's property Select Top N will have any value

Your solution will return Repeaters Select Top N value but not Pages Data Source items count

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 8, 2016 15:01

Technically if you have a select statement with SELECT TOP N... in place, the datasource and the repeater will only ever return that value or less. So you need to have another query run to do a count on all the items you're looking for.

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.