[TYPO3-templavoila] How do I disable the header field from tt_content in a coneent elements type FCE?

Franz Koch typo at fx.MINUS.graefix.DOT.de
Fri Feb 23 20:05:46 CET 2007


Hi Simon,
> I have an FCE which inserts content elements. TV automatically inserted
> the appropriate TS:
> 
>     10 = RECORDS
>     10.source.current=1
>     10.tables = tt_content
> 
> The problem I have is that this includes the header and subheader 
> fields, i.e. header and/or subheader are rendered in the frontend 
> whenever I insert this FCE, but I'd like to 'disable' these fields 
> (header & subheader). I've tried my luck with stdWrap (i.e. 'if'). but 
> so far no success. Does anyone know how to fix the above TypoScript to 
> *exclude* the header and subheader?

Welcome to the power of TS :)

----------
10 = RECORDS
10 {
  source.current = 1
  tables = tt_content
  # copy default rendering settings to internal renderObject
  conf.tt_content < tt_content
  conf.tt_content {
    # now unset COA-Element 10 of every renderObject as it 
    # normally contains lib.stdheader which renders the headlines
    text.10 >
    image.10 >
    textpic.10 >
    table.10 >
    uploads.10 >
    multimedia.10 >
    menu.10 >
    bullets.10 >
    default.10 >
  }
}
----------

That should do the trick :) I only included the most common content types - if you need more, just have a look in the TS object browser which elements tt_content regularly conatins.
-- 
Kind regards,
Franz Koch


More information about the TYPO3-project-templavoila mailing list