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

Torsten Schrade schrade at lineara.de
Tue Jun 14 07:28:36 CEST 2005


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



More information about the TYPO3-english mailing list