Project

General

Profile

Actions

Bug #62719

closed

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

Added by Dieter Porth over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-11-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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


Files

AbstractMenuContentObject.php (74.3 KB) AbstractMenuContentObject.php corrected version Dieter Porth, 2014-11-05 16:41
20141105_AbstractMenuContentObject.php (74.2 KB) 20141105_AbstractMenuContentObject.php original version of core TYPO3 6.2.6 Dieter Porth, 2014-11-05 16:41

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #62482: TypoScript Special HMENU prev bugClosed2014-10-27

Actions
Actions #1

Updated by Benni Mack over 9 years ago

Seems to be a duplicate of https://forge.typo3.org/issues/62719 - right?

Actions #2

Updated by Frederic Gaus about 9 years ago

  • Status changed from New to Closed

I would also say this is a duplicate. This is fixed in 6.2.10rc1 and will be fixed in 6.2.10.

@Dieter Porth, please create a new ticket or reopen this one if you think this ticket is not fixed yet. Thanks!

Actions

Also available in: Atom PDF