[Typo3] TypoScript: link to next page in page tree

tapio tapio.markula at dnainternet.net
Tue Jun 14 13:50:15 CEST 2005


Torsten Schrade wrote:
> Pieter Jelle wrote:
> 
>>Hello all
>>
>>I've been looking at this for a while, but can't seem to figure out how
>>to deal with this: I'd like to set up a link (in TypoScript) to the next
>>page on the same level in the page tree (next sibling). Can anyone give
>>me any hints on how to do this? Any help would be most appreciated.
>>
>>Best regards
>>Pieter Jelle
> 
> Hi Pieter,
> 
> have a look at HMENU's special=browse property in TSRef:
> http://typo3.org/documentation/document-library/doc_core_tsref/HMENU-1/
> 
> Something like this should point you in the right direction:
> 
> page.99 = HMENU
> page.99.special = browse
> page.99.special {
>   items = prev|next
>   items.prevnextToSection = 1
>   prev.target = _self
>   next.target = _self
> }
> 
> page.99.1 = TMENU
> page.99.1.NO.allWrap=|*|<span>prev:&nbsp;|</span>||<span>next:&nbsp;|</span>|*|
> 
> greets, Torsten

Well I tested

temp.languageDet.1  = TMENU
temp.languageDet.1 {
NO = 1
NO
   {
   allWrap=|*|<span>&nbsp;|</span>|*|<span>&nbsp;|</span>|*|
   }
}

Problems:

1) prev/next started to work from the level '2'

2) wrap doesn't work

Tapio Markula



More information about the TYPO3-english mailing list