[Typo3-dev] excludeUidList : Exclude current page from a menu
Jean-Baptiste Rio
triphot69 at hotmail.com
Mon Oct 3 12:34:08 CEST 2005
Before we have, maybe one day, a full stdWrap on this menu param, i
suggest a little enhancement which allows to exclude the current page
from a menu (typically when using special with 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 produces a menu with the "sisters and brothers" pages from a page
(so except the page itself).
I've changed 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);
}
I use Typo3 3.7.0 and PHP5. I sent a feature issue in the bugtracking to
trace this enhancement.
Regards,
Jean-Baptiste
More information about the TYPO3-dev
mailing list