[TYPO3-dev] Overwriting header field with fixed content - How to do it?

Jens Beckmann jensbeckmann at gmx.info
Mon Mar 13 10:10:45 CET 2006


Kevin Renskers schrieb:
> Kevin Renskers wrote:
>> Jens Beckmann wrote:
>>> Hi!
>>>
>>> How could I fill a headline field with fixed content?
>>>
>>> In my particular case I want each download section (CType "uploads") 
>>> on the website to appear with the same heading, e.g. "Files to 
>>> download", no matter what the user has filled into the header field 
>>> in the backend form.
>>>
>>> I think I could build the whole rendering on my own (tt_content = 
>>> CASE ...) but is there an easier way to overwrite the content coming 
>>> from the database field "header" where CType is "uploads"? I am using 
>>> static template "CSS Styled Content".
>>>

> 
> So just add
> 
> tt_content.uploads.10 >
> tt_content.uploads.10 = TEXT
> tt_content.uploads.10 = Your fixed header
> 
> to your template.


Thanks, you pushed me in the right direction! It now works, but only 
with a wrap:

tt_content {
   key.field = CType
   uploads = COA
   uploads.10 = TEXT
   uploads.10.field = header
   uploads.10.wrap = xx | xx
}

Now, how to overwrite the content instead of only wrapping it?

      uploads.10.value = My fixed header
  or  uploads.10 = My fixed header

will not work ...




More information about the TYPO3-dev mailing list