Project

General

Profile

Actions

Feature #19629

closed

Integrate the option "reverseOrder" for a complete HMENU

Added by Liakos over 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-11-22
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

Starting from #17747 and expanding that idea, I'm suggesting a plain .reverseOrder property, that will reverse the order of the HMENU items (first level).

Example of typoscript at template setup:

lib.topmenu = HMENU
lib.topmenu.reverseOrder = 1

The attached patch will implement that, and I've been using it with version 4.2.2 and 4.2.3 for a couple of weeks now, with no incidents.

Patch: typo3/sysext/cms/tslib/class.tslib_menu.php, starting from line 825 (roughly):

$temp[$row['uid']]['sectionIndex_uid'] = $row['uid'];
}
}
}
} else { // Default:
$temp = $this->sys_page->getMenu($this->id,'*',$altSortField); // gets the menu
if ($this->conf['reverseOrder']) { //skagon's patch for reverseOrder
$temp = array_reverse($temp);
}
}
$c=0;
$c_b=0;

(issue imported from #M9814)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #17747: Integrate possibility to reverse order of rootline HMENUClosedOliver Hader2007-11-02

Actions
Actions #1

Updated by Alexander Opitz about 11 years ago

  • Category deleted (Communication)
  • Status changed from New to Needs Feedback
  • Target version deleted (0)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

Actions #2

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF