[TYPO3-UG Dutch] special browse menu loop prev|next

Muriel le Pair typo3 at strangefruit.nl
Tue Aug 3 16:13:46 CEST 2010


Hoi Daniel,

Op 3-8-2010 13:40, Daniel Doesburg schreef:
> Kun je hier wat mee?
>
> http://www.typo3forum.net/forum/gmenu-hmenu-tmenu-co/42222-hmenu-special-browse-ende-anfang-ckkehren.html

Ja! Het werkt bijna. De loop van de subpagina's werkt goed. Ik lig 
alleen nog wat overhoop met TSref. Volgens de manual zou het als volgt 
moeten werken:

"next / prev : links to next page / previous page. Next and previous 
pages are from the same "pid" as the current page id (or "value") - that 
is the next item in a menu with the current page. Also referred to as 
current level.
If ".prevnextToSection" is set then next/prev will link to the first 
page of next section / last page of previous section."

Daar maak ik uit op, als prevnextToSection = 1 dan zou next moeten 
verwijzen naar de eerste subpagina. Maar helaas.. in plaats daarvan 
linkt next naar de volgende pagina (ipv subpagina) en prev is niet 
zichtbaar. Enig idee waar de fout zit?

# ------------------------
# Menu - previous / next
# ------------------------
[PIDinRootline = 11,8]
temp.nextmenu = COA
temp.nextmenu {
    # previous page, if not available get last to loop
    10 = HMENU
    10.special = browse
    10.special{
        items = prev
        items.prevnextToSection = 0
        prev.fields.title = {$lib.nextmenu.back}
    }
    10.1 = TMENU
    10.1 {
       noBlur = 1
       NO = 1
    }
    10 {
       stdWrap.ifEmpty.cObject = HMENU
       stdWrap.ifEmpty.cObject {
          special = browse
          special {
             items = last
	    items.prevnextToSection = 0
             last.fields.title = {$lib.nextmenu.back}
             # firstlevel, should link to last page of subpages
             [treeLevel = 1]
		items = prev
                 items.prevnextToSection = 1
                 prev.fields.title = {$lib.nextmenu.back}
             [end]
          }
          1 = TMENU
          1 {
             noBlur = 1
             NO = 1
          }
       }
	
    }
    # next page, if not available get first to loop
    20 = HMENU
    20.special = browse
    20.special{
        items = next
        items.prevnextToSection = 0
        next.fields.title = {$lib.nextmenu.next}
    }
    20.1 = TMENU
    20.1 {
       noBlur = 1
       NO = 1
    }
    20 {
       stdWrap.ifEmpty.cObject = HMENU
       stdWrap.ifEmpty.cObject {
          special = browse
          special {
             items = first
	    items.prevnextToSection = 0
             first.fields.title = {$lib.nextmenu.next}
             # firstlevel link -> to first subpage
	    [treeLevel = 1]
		items = next
                 items.prevnextToSection = 1
                 next.fields.title = {$lib.nextmenu.back}
             [end]
          }
          1 = TMENU
          1 {
             noBlur = 1
             NO = 1
          }
       }
    }
}
[end]

-- 
met vriendelijke groet,

Muriel le Pair


More information about the TYPO3-UG-Dutch mailing list