[Typo3] How to access pids of subpages?
Pierre Rossel
typo3-l at prossel.com
Tue May 24 22:57:57 CEST 2005
Hi Michael
This is an old thread, but I was looking to do the same thing and JoH's answer helped me. However it doesn't work as is. (missing "renderObj = TEXT" line).
So I post here my tested working solution, based on JoH's one, for the record.
<pre>
# get children page uid's
temp.childrenUid = CONTENT
temp.childrenUid {
table = pages
select {
pidInList.field = uid
orderBy = sorting
selectFields = uid
}
renderObj = TEXT
renderObj {
field = uid
wrap = |,
}
}
# get content of children pages
page.10 = CONTENT
page.10 {
table = tt_content
select {
pidInList.cObject < temp.childrenUid
orderBy = sorting
}
}
</pre>
- Pierre Rossel (prossel)
-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/48398/
More information about the TYPO3-english
mailing list