KP
Are you using pagination? [+total+] and [+totalPages+] are empty unless &paginate=`1`. Using &paginate=`1` and (default) &display=`all` will give you the count of sub-documents in [+total+]. There can also be complications to do with caching.
What does your Ditto call look like?
KP
[[Ditto? &startID=`166` &tpl=`rechnik_total` &paginate=`1` &display=`all`]]
it`s funny...where is now mistake?
good one...now working but have very strange new problem.
first my ditto call now:
[[Ditto? &startID=`166` &tpl=`rechnik_total` &paginate=`1` &display=`all`]]
results is:
(22222222222222222222222222222222222222222222)
but a have just 22 pages in this groupit`s funny...where is now mistake?
Don’t know if that’s the cause of your problem, but any time you use &paginate with Ditto you should call it uncached, [!Ditto? ... !]
[!Ditto? &startID=`166` &summarize=`all` &tpl=`rechnik` &orderBy=`pagetitle DESC` &paginate=`1` &display=`all`!]

Quote from: Kristalin at Jun 10, 2009, 06:35 AM
good one...now working but have very strange new problem.
first my ditto call now:
[[Ditto? &startID=`166` &tpl=`rechnik_total` &paginate=`1` &display=`all`]]
results is:
(22222222222222222222222222222222222222222222)
but a have just 22 pages in this groupit`s funny...where is now mistake?
Placeholder [+total+] should be in the document after Ditto call, not in the Ditto template?