Issue Feature Closed

#19629Integrate the option "reverseOrder" for a complete HMENU

Liakos 11/22/08, 00:42 updated 09/09/13, 10:21

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)

Reviews 0

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