[TYPO3-dev] Overwriting header field with fixed content - How to do it?
Kevin Renskers
info at dualdot.nl
Sun Mar 12 19:51:14 CET 2006
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".
>>
>> Thank you for any hint!
>>
>> Jens
>>
>
> Shouldn't this just do the trick?
>
> lib.stdheader >
> lib.stdheader = TEXT
> lib.stdheader.value = Your fixed header
Oh wait, you only wanted it for the upload upload type. Well if I look
in my template analyzer, I see this:
tt_content.uploads = COA
tt_content.uploads {
10 = < lib.stdheader
}
So just add
tt_content.uploads.10 >
tt_content.uploads.10 = TEXT
tt_content.uploads.10 = Your fixed header
to your template.
More information about the TYPO3-dev
mailing list