[TYPO3-english] List BE sub-pages in PHP
ask josephsen
ask at moc.net
Tue Jan 14 12:08:24 CET 2014
Hi
I'm working in Typo3 6.1 and need to retrieve a list of pages below the currently selected (to retrieve various information on these). I've tried working with Pagetree, but I'm not sure its the right way to go. It for an php-extension and this is my code so far - in the a controllerModule:
node = $this->objectManager->get('TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode');
$dataProvider = $this->objectManager->get('TYPO3\CMS\Backend\Tree\Pagetree\DataProvider', $this->pageId );
$nodeCollection = $dataProvider->getNodes($node);
Any ideas ?
thanx
Ask
More information about the TYPO3-english
mailing list