[TYPO3-english] How can I access content from child pages?

Ernesto Domato edomat at gmail.com
Fri Aug 19 21:59:11 CEST 2011


On Fri, Aug 19, 2011 at 16:12, Ernesto Domato <edomat at gmail.com> wrote:
> Hi everyone,
>
> Can someone help me point out how can I display the content of
> sub-pages?. I'm trying to use the CONTENT cObject but have no luck.
>

Well, using Google a little I ended with this code:

# Right container
temp.pageIds = HMENU
temp.pageIds.entryLevel = 2
temp.pageIds.1 = TMENU
temp.pageIds.1 {
  noBlur = 1
  NO.allWrap = {elementUid}, |
  NO.doNotLinkIt = 1
  NO.subst_elementUid = 1
}
lib.right_container = CONTENT
lib.right_container.table = tt_content
lib.right_container.select {
  pidInList.cObject < temp.pageIds
}

but it only shows me the first child page content instead of of the childs :-(

If you don't understand well what I want to do, taking this structure:

Page 1
- Subpage 1
-- Content for Subpage 1
- Subpage 2
-- Content for Subpage 2
- Subpage 3
-- Content for Subpage 3

I can only see the "Content for Subpage 1" instead of all the content
for subpages

Thanks,
Ernesto.


More information about the TYPO3-english mailing list