[TYPO3-english] [Typoscript question]: How to add the page uid to the body tag?

Stephen Bungert stephenbungert at yahoo.de
Wed Jun 9 16:45:37 CEST 2010


Should have been "like this" and not "do this".


"Stephen Bungert" <stephenbungert at yahoo.de> schrieb im Newsbeitrag 
news:mailman.1.1276094953.22051.typo3-english at lists.typo3.org...
> Hello,
>
> I always make my body tag do this (I add t3id as a preffix because ids 
> shouldn't start with numbers):
>
>
> page {
>  # Body Tag #
>  bodyTag >
>  bodyTagCObject = HTML
>  bodyTagCObject {
>    value.field = alias // uid
>    value.wrap = <body id="t3id-|"><a name="top" id="top"></a>
>  }
> }
>
> "Daniel Doesburg | Doesburg.biz" <daniel at typo3-nl.eu> schrieb im 
> Newsbeitrag 
> news:mailman.1.1276094306.14439.typo3-english at lists.typo3.org...
>> Hi Sebastian,
>>
>> Thanks for your answer. But stil the same question. How?
>>
>>
>> Kind regards,
>>
>> Daniel Doesburg
>>
>> Op 9-6-2010 16:10, Sebastian Michaelsen schreef:
>>> Am 09.06.10 16:05, schrieb Daniel Doesburg | Doesburg.biz:
>>>> Hi,
>>>>
>>>> I use the TV Framework of Ron Hall.
>>>> Every body tag has the mnemonic of the template as id
>>>>
>>>> P.E. <body id="fa1">
>>>>
>>>> Now I want to add a second id, with the uid of the page, to this tag
>>>>
>>>> P.E. <body id="fa1" id="page_12">
>>>>
>>>> How can I do that with typoscript?
>>> Even though that's not your question..
>>>
>>> You are not allowed to assign two IDs to one Tag in HTML.
>>> Generally a Tag can have each attribute only once.
>>>
>>> Consider using classes instead.
>>>
>>> Kind regards,
>>> Sebastian
>>
>
> 




More information about the TYPO3-english mailing list