[TYPO3-english] Get header from other elements whitin flexible element

"Christian Müller (Kitsunet)" christian at kitsunet.de
Thu Dec 2 20:36:43 CET 2010


See TSRef for RECORDS, by default it will look for a ts objec, named 
like the table the record is from. So in this typical case it looks for 
TS "tt_content" which is the default css_styled_content definition 
(unless you don't use css_styled_content but something else).

Anyway to define your own way of rendering the records you can do 
something like this:

10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
10.conf.tt_content = TEXT
10.conf.tt_content.field = header

which will render ONLY the header text + the TYPO3SEARCH comment. So 
probably you will want to add some wrap with a <h1> or whatever you need.

If you need the different header layouts as well you can do this:

10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
10.conf.tt_content < lib.stdheader

Which should give you basically the same HTML for the header as with the 
normal rendering but leaves out everything else (the bodytext etc.).

Christian


More information about the TYPO3-english mailing list