TYPO3: How do I insert page content into template

Tom Viner picture Tom Viner · Jul 6, 2009 · Viewed 23.9k times · Source

I have some content that I want to appear on multiple pages of my TYPO3 site. I could just insert this into the template, but I also want that content to be editable in the Rich Text Editor.

So I had the idea of creating a hidden page, but I don't know how to insert this content into a template.

Does it require the select typoscript statement?

Also, as a follow-up question, can I add something to say, only include pages that have this page id as their immediate parent in the page hierarchy.

Answer

Dmitri Pisarev picture Dmitri Pisarev · Aug 31, 2009

I didn't quite get the second question. If you want to include some record only to pages under some other page, then this will obviously work:

[PIDinRootline = pages-uid, pages-uid, ...]
temp.foo = RECORDS
temp.foo {
    tables = tt_content
    source = ID # Enter the object's ID here
}
[end]

On the other hand, if you want to include all records from pages, being children of some other page, then try something like:

1 = CONTENT
  1.table = tt_content
  1.select {
    pidInList = parent-uid
  }

Don't know if I got you right though. Dmitri.