[TYPO3-dev] getRootLine

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Oct 24 09:31:20 CEST 2006


Steffen Kamper schrieb:
> Hi,
> 
> i need for extension all pages from one Rootline. Now I have a problem, 
> cause there is no way to get them by one SQL.
> I have to run through all pages and have to decide with the function 
> getRootLine() if the page is in the wanted rootline.

Hm? The Rootline is consisting of the current page and all its parent pages 
up to the root of the site.

You can get all page records by doing a "SELECT * FROM pages WHERE uid IN 
(...)". The IN-part may be created by loopiing through the page uid in the 
rootline array.

Masi




More information about the TYPO3-dev mailing list