[TYPO3] Menu Active state

Ron Hall ronslists at busynoggin.com
Thu Sep 18 14:10:28 CEST 2008


If you use that code you might want to change the line:

page.bodyTagCObject.value.wrap = <body id="|">

to something like:

page.bodyTagCObject.value.wrap = <body id="bodyID-|">

I am pretty sure you are not supposed to start an id with a number  
(you can use numbers elsewhere in the string).

Ron

On Sep 18, 2008, at 6:45 AM, StephenBungert wrote:

>
> I use the following TS to add the page ID to my body tag:
>
> page.bodyTag >
> page.bodyTagCObject = HTML
> page.bodyTagCObject.value.field = uid
> page.bodyTagCObject.value.wrap = <body id="|">
>
> You could then include JavaScript and also add an onload call toa  
> function
> in the body tag.
>
> Then you just check in the function the id of the body tag (set by  
> TYPO3 to
> the page id), and if it equals the unternehmen page id, edit the html
> through the DOM and give the first link in the top right menu a new  
> class so
> that it shows the arrow (if the home link is always the shortcut  
> page).
>
> -----
> -- 
> Stephen Bungert
> -- 
> View this message in context: http://www.nabble.com/Menu-Active-state-tp19549281p19550969.html
> Sent from the TYPO3 English mailing list archive at Nabble.com.
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list