Actions
Bug #62719
closedHMENU -> 'browse' -> items=prev fails at the second Item
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"><<</span> next.fields.title = <span class="right">>></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
Actions