Commit ac5058a7 authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

* "minItems", "maxItems" and "begin" has been added as properties to MENU objects (like TMENU, GMENU, IMGMENU etc) so you can set these values for the individual menus (as they probably should have been in the first place...).


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@209 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 90a04d1f
2004-04-19 Kasper Skårhøj,,, <kasper@typo3.com>
* "minItems", "maxItems" and "begin" has been added as properties to MENU objects (like TMENU, GMENU, IMGMENU etc) so you can set these values for the individual menus (as they probably should have been in the first place...).
2004-04-19 Kasper Skårhøj,,, <kasper@typo3.com>
* Added a checkbox to the page header in the "cms" extension called "Hide in menu". With this checkbox the page is excluded from menus on the totally same terms as doktype=5 ("Not in menu") does. The implementation is believed to be complete (although there might be some places overlooked). The checkbox renders the doktype 5 "Not in menu" obsolete; the idea is that the checkbox should be used in the future. Finally - if anyone read this far - I prophecise, that within two weeks from this moment someone will approach me and want to have a visual response to the "Hide in menu" checkbox in the icon; currently the page icon does NOT change it looks (and it would be very doubtful if we could justify making it change...).
......
......@@ -701,9 +701,9 @@ class tslib_menu {
$c = 0;
$c_b = 0;
$minItems = intval($this->conf['minItems']);
$maxItems = intval($this->conf['maxItems']);
$begin = tslib_cObj::calc($this->conf['begin']);
$minItems = intval($this->mconf['minItems'] ? $this->mconf['minItems'] : $this->conf['minItems']);
$maxItems = intval($this->mconf['maxItems'] ? $this->mconf['maxItems'] : $this->conf['maxItems']);
$begin = tslib_cObj::calc($this->mconf['begin'] ? $this->mconf['begin'] : $this->conf['begin']);
$banUidArray = array();
if (trim($this->conf['excludeUidList'])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment