Issue Bug Closed

#62719HMENU -> 'browse' -> items=prev fails at the second Item

Dieter Porth 11/05/14, 16:41 updated 02/11/15, 08:09

Description

The ‘page 1’ is active in my page-tree

start
- page 0
- page 1 (acitve)
- page 2 
- ...

The following TypoScript in TYPO 6.2.6 don’t generate a link to the prev-Page ‘page 0’

lib.menu.pager = HMENU
lib.menu.pager {
    special=browse
    special {
        items = up|prev|next
        prev.fields.title = <span class="left">&lt;&lt;</span>
        next.fields.title = <span class="right">&gt;&gt;</span>
        up.fields.title = <span class="up">||</span>
    }
    1 = TMENU
    1 {
        NO = 1
    }
}

The reason is the usage of array-key as a boolean flag to detect the first previous link in the result-Array

see typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
in line 747 (and similiar in line 776 for prevsection)

I attached a correted version.

Dieter

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.