[TYPO3] Display Page Location with TypoScript in Template
Dmitry Dulepov [typo3]
dmitry at typo3.org
Tue Jul 29 16:31:19 CEST 2008
Hi!
Sebastian Baciu wrote:
> 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?
Check docs here:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/8/11/
And code example there:
page.2 = HMENU
page.2.special = rootline
page.2.special.range = 1|-2
page.2.special.targets.3 = page
page.2.1 = TMENU
page.2.1.target = _top
page.2.1.wrap = <HR> | <HR>
page.2.1.NO {
linkWrap = | >
}
--
Dmitry Dulepov
TYPO3 Core team
Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml
More information about the TYPO3-english
mailing list