[TYPO3] counting subpages recursivly?
Bernd Wilke
xoonsji02 at sneakemail.com
Fri Jun 22 21:31:28 CEST 2007
Hello,
I want to display in my menus the count of subpages to each page.
I have finished the first iteration:
count of pages which are direct children.
(see my HP (german!))
But my idea was the count of all pages beneath every page.
example:
root (13/3)
+-page (3/2)
| +-page (1/1)
| | +-page (0/0)
| +-page (0/0)
+-page (6/3)
| +-page (3/2)
| | +-page (0/0)
| | +-page (1/1)
| | +-page (0/0)
| +-page (0/0)
| +-page (0/0)
+-page (1/1)
+-page (0/0)
The first number gives the count of all pages beneath
the second number gives the number of direct children
the whole would be easy in php (extension or userfunc), but maybe someone
knows a way to solve it with pure typoscript?
Bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-english
mailing list