[TYPO3-english] Get All parents page ids of a page

Björn Pedersen pedersen at frm2.tum.de
Wed Dec 5 17:27:56 CET 2012


Am 05.12.2012 16:49, schrieb Pablo Feldman:
> Hi List,
> 
> I need to render a content that could be on the current page, or in any of
> parents pages of the tree.
> For that I want to do something like
> 'select bodytext from tt_content where pid in (....)'
> 
> I cannot find a way to get a list of all parents uids,
> A way should be going page by page using the pid of each one to get the
> parent, but does not seems to be a very performant,
> 
> Any Idea?
> 
> Thanks in advance
> 
Hi,

look up the  slide property of the  CONTENT content element.
(http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.7.0/view/1/7/#id783193)

That should do what you want.

Björn



More information about the TYPO3-english mailing list