[TYPO3] How do I get the root page's styles.content.getLeft

Mike php at talkingspider.com
Thu Sep 21 19:18:21 CEST 2006


Wow!  OK, is there a more direct way to refer to the root's 
style.content.getLeft, or is this recursive thing the only way you 
know of?  Thanks either way,

mike


At 12:37 PM 9/21/2006, you wrote:
>Mike schrieb:
> >
> > I want to do something like:
> >
> > page.10 < [rootpage].styles.content.getLeft
> >
> > How do I refer to the root page?
> >
> > And while I'm typing, how would I get the parent page?  (Would it be
> > "styles.content.getLeft:-2")
> >
> >
> >
> >
>This might help as it shows the principles
>lib.recursive=COA
>lib.recursive{
>          backlevel5 = CONTENT
>          backlevel5 {
>              table = tt_content
>              select {
>                  pidInList.data = leveluid: -6
>                  orderBy = sorting
>                  where = colPos=0
>              }
>              renderObj < lib.tt_content
>              renderObj {
>                  stdWrap.dataWrap=<a name="{field:uid}"></a>|
>              }
>          }
>
>          backlevel4 < .backlevel5
>          backlevel4.select.pidInList.data = leveluid: -5
>          backlevel4.stdWrap.ifEmpty.cObject < .backlevel5
>
>          backlevel3 < .backlevel4
>          backlevel3.select.pidInList.data = leveluid: -4
>          backlevel3.stdWrap.ifEmpty.cObject < .backlevel4
>
>          backlevel2 < .backlevel3
>          backlevel2.select.pidInList.data = leveluid: -3
>          backlevel2.stdWrap.ifEmpty.cObject < .backlevel3
>
>          backlevel1 < .backlevel2
>          backlevel1.select.pidInList.data = leveluid: -2
>          backlevel1.stdWrap.ifEmpty.cObject < .backlevel2
>}
>
>Got it?
>
>Regs. Peter.
>
>--
>Fiat lux!
>Docendo discimus.
>_____________________________
>4Many® Services
>openBC: http://www.openbc.com/go/invuid/Peter_Russ
>_______________________________________________
>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