[TYPO3] Display Page Location with TypoScript in Template

Sebastian Baciu sebastian.baciu at gmail.com
Tue Jul 29 15:50:03 CEST 2008


Hi List,

I have recently incorporated a feature that builds a small replica of the
page tree on each site, showing the user where they are, for example Root >
Page 1 > Subpage 1. The Typoscript i am using to achieve this is shown
below:

lib.inttitle = COA
lib.inttitle {
  10 = HTML
  10 {
    value.data = leveltitle:-3
  }

  20 = HTML
  20 {
     value =  > 
  }

  30 = HTML
  30 {
    value.data = leveltitle:-2
  }

  40 = HTML
  40 {
     value =  > 
  }

  50 = HTML
  50 {
    value.data = page:title
  }
}

There is an issue however, whenever i view the root page...then the user
sees: Root > Root > Root. The same occurs if i view a second level page,
then the user sees: Root > Root > Page. Basically, the only time this works
(properly) is when i view a third level page. What kind of conditional
system can i implement so that these "unnecessary" level titles dont show
up?

Thanks in advance,

Sebastian


More information about the TYPO3-english mailing list