[TYPO3-english] Whitespace and newline in page.headerData
Rik Willems
rik at actiview.nl
Mon Apr 27 11:08:56 CEST 2009
Hi Elijah,
Here is how I use it, and it works just fine:
// Place own title tag
config.noPageTitle = 2
page.headerData.1 = TEXT
page.headerData.1 {
data = field:subtitle // TSFE:page|title
noTrimWrap = | <title>| - {$config.siteName}</title>|
}
The tab before <title> makes it align nicely with the rest of the auto
generated head content. The data field make that the page title is also
correct for tt_news article titles.
Rik
Elijah Alcantara schreef:
> Hi,
>
> @notrimwrap: Exactly what I was looking for, thanks! solved!
>
> @parenthesis: I can see how this works for a single page.headerData, but
> what about multiple ones?
>
> page.headerData.10
> page.headerData.15
> page.headerData.20 ...
>
> It doesn't seem to arrange itself and set a new line for each
> headerData, I even attempted to do something like this:
> page.headerData.5 = COA
> page.headerData.5 {
> 5 = TEXT
> 5.value (
> )
> }
>
> Just so I can try and add a new line before headerData.10, but that
> doesn't seem to work :(
>
>
> @base in headerData: oh that's a special issue in my site, I just had to
> use it.
>
>
>
> Regards,
> Elijah
>
>
>
>
> Dmitry Dulepov wrote:
>> Hi!
>>
>> elijah wrote:
>>
>>> Question:
>>> ??? How can I add whitespace in the TS without using html code ???
>>>
>>
>> Use noTrimWrap.
>>
>>
>>> Question:
>>> ??? How can I be able to make the code I add to the header drop into a
>>> new line, of course without using any html code ???
>>>
>>
>> Use ( and ) to make multiline values. I am not sure though why create
>> <base> with headerData.
>>
>>
>
More information about the TYPO3-english
mailing list