Project

General

Profile

Actions

Feature #15001

closed

excludeUidList : Exclude current page from a menu

Added by Jean-Baptiste Rio about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2005-10-02
Due date:
% Done:

0%

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

Description

Before we have, maybe, a full stdWrap on this menu param, just have a look at this little enhancement which allow to exclude the current page from a menu (typically when using update or directory).

This enhancement accept "this" in the uid list. For example :

lib.mymenu = HMENU
lib.mymenu.entryLevel = -2
lib.mymenu.excludeUidList = this
lib.mymenu.1 = TMENU
...

This menu produces the sisters page from a page, except the page itself.

Change these codelines in class.tslib_menu.php (at 2 positions : line 763 and line 2613)
if (trim($this->conf['excludeUidList'])) {
- $banUidArray = t3lib_div::intExplode(',', $this->conf['excludeUidList']);
+ $banUidList = str_replace('this', $GLOBALS['TSFE']->page['uid'], $this->conf['excludeUidList']);
+ $banUidArray = t3lib_div::intExplode(',', $banUidList);
}

(issue imported from #M1520)

Actions

Also available in: Atom PDF