[Typo3-dev] Menu expand, special = directory
Bernhard Kraft
kraftb at mokka.at
Tue Dec 21 13:08:29 CET 2004
Hallo !
So I'm also on the dev list now ...
I tried to create a menu with a first, second and third level navigation but
with the speciality that
.special = directory
is set and
.special.value = 2
I noticed that the submenus don't get rendered and took a look into the source.
There I found the following notice in class.tslib_menu.php on line 267:
// Notice: The automatic expansion of a menu is designed to work only when no "special" modes are used.
So it seemed to me that it is not possible with the current features of typo3 to
have this menu expanded while i have special=directory set ...
So I took a little closer look into the source and what came out is a patch to
enable Submenu-Expanding with menus which have special=directory set. (But just
special=directory ... it won't work with any other specia= values)
If it is wanted to integrate this feature into the core here's a patch to
class.tslib_menu.php
http://www.libelle.at/kraftb/sp_dir_expand.patch
Just apply it with
cd TYPO3_ROOT/tslib
patch -p 0 ./class.tslib_menu.php < ./sp_dir_expand.patch
I tried if it works with multiple levels of menus and it did.
I didn't try it with multiple ".special.value =" values (i.e.
.special.value = 2,10,20) but it should also work this those
greets,
Bernhard
--
-----------------------------------------
Bernhard Kraft
<kraftb at mokka.at>
MOKKA MEDIENAGENTUR GMBH
Mariahilferstrasse 170
1150 Wien
T: 01 895 33 33 50
M: 0676 560 14 14
F: 01 895 33 33 20
www.mokka.at
-----------------------------------------
More information about the TYPO3-dev
mailing list