[Typo3] TypoScript: link to next page in page tree
Pieter Jelle
pieter.jelle at invalid.invalid
Wed Jun 22 00:58:51 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/
>
A bit late, but still : thanks Torsten! I solved it by doing this :
page.10.subparts.title = COBJ_ARRAY
page.10.subparts.title {
10 = HMENU
10.special = browse
10.special {
items = prev
items.prevnextToSection = 1
prev.target = _self
}
10.1 = TMENU
20 = TEXT
20.value = {page:title}
20.insertData = 1
30 = HMENU
30.special = browse
30.special {
items = next
items.prevnextToSection = 1
next.target = _self
}
30.1 = TMENU
}
So the title of the page links to the next and previous page.
Thanks!
More information about the TYPO3-english
mailing list