[TYPO3-english]  Strange behavior of PIDinRootline
    Xavier Perseguers 
    typo3 at perseguers.ch
       
    Wed Jul  8 12:03:28 CEST 2009
    
    
  
Hi,
I try to change a menu background color according to the tree it is related.
I have something like this:
[PIDinRootline = 5]
lib.menu.1.NO.allWrap = <li style="background-color: red"> | </li>
[global]
According to TSRef:
This checks if one of the figures in "treeLevel" is a PID (pages-uid) in 
the rootline
And in this case:
This changes something with the template, if the page viewed is or is a 
subpage to page 5
However the funny part is that I get /other/ menus to be changed, as if 
there were some "NOT" boolean operator somewhere.
Tested on 4.3-trunk and 4.3 alpha3. Can someone confirm or help pointing 
out the error in TS, if any?
-- 
Xavier Perseguers
DBAL-Member
http://xavier.perseguers.ch/en/tutorials/typo3.html
    
    
More information about the TYPO3-english
mailing list