I think i got it (and it works !) :
the definition for a top menu entry is like this :
$r=0;
$this->menu[$r]=array('fk_menu'=>'0',
'type'=>'top',
'titre'=>'My top menu label',
'mainmenu'=>'
mymainmenucode',
// important, it will be used in left menu entries
...
the left menu is like this :
$r++;
$this->menu[$r]=array('fk_menu'=>'fk_mainmenu=
mymainmenucode',
'type'=>'left',
'titre'=>'My left menu label',
'leftmenu'=>'
myleftmenucode',
// important, it will be used in left submenu entries
...
and a submenu of this one is :
$r++;
$this->menu[$r]=array('fk_menu'=>'fk_mainmenu=
mymainmenucode,fk_leftmenu=myleftmenucode',
'type'=>'left',
'titre'=>'My left submenu label',
...
--
Responsable technique
SARL altairis
www.altairis.fr
09 52 71 70 96
Le 20/03/2013 18:03, Florian Henry a écrit :
Hello all,
That true, each time I have to add menu in left existing
one, I print the var in lefmenublock function to find the code.
May be I will take time to document it.
Kind regards
Florian HENRY
address@hidden
+33 6 03 76 48 07
http://www.open-concept.pro
Twitter : @_Open_Concept_
Le 20/03/2013 16:18, Juanjo Menent a écrit :
Hello,
xxx= name of mainmenu (ex:
'fk_menu'=>'fk_mainmenu=products' will enable the menu into
Main products menu)
yyy= name of leftmenu (ex:
'fk_menu'=>'fk_mainmenu=products,fk_leftmenu=stocks' will
enable the menu into Main products menú, into Stocks left
menu...)
Sorry my bad english...
El 20/03/13 16:01, Christophe Battarel escribió:
Hello everybody,
Each time i write a new module for dolibarr i spend hours
defining left menus entries.
The wiki is not enough, especially for the explanation of
fk_menu, mainmenu, leftmenu...
The sample in the wiki is pretty but what are xxx and yyy
here (dont answer mainmenucode and leftmenucode...) :
'fk_menu'=>'fk_mainmenu=xxx', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where
x
xx
i
s mainm
enucode and yyy is a leftmenucode
???
Hoping for an answer before i have no more hair...
Christophe
_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
--
Un cordial saludo.
Juanjo Menent
2Byte.es
Soluciones
Informáticas S.L.
http://www.2byte.es
C/ San Ramón, 5
46702 Gandía - Valencia (España) Telf. 985 675 996
Grupo
aire[re]creativo.com Factoría de Ideas
address@hidden|http://www.airerecreativo.com
Antes de imprimir este
correo electrónico piense bien si es necesario
hacerlo: El medio ambiente es cosa de todos.
INFORMACIÓN SOBRE PROTECCIÓN Y
TRATAMIENTO DE DATOS PERSONALES: Este mensaje y los
archivos adjuntos son confidenciales y se dirigen
exclusivamente a su destinatario. Si no es usted el
destinatario indicado, queda notificado de que la
utilización, divulgación y/o copia sin autorización
está prohibida en virtud de la legislación vigente.
Si usted ha recibido este correo por error, por
favor avísenos inmediatamente a través de correo
electrónico o por teléfono, descritos en la parte
superior, y tenga la amabilidad de eliminarlo de su
sistema.
En cumplimiento de
lo establecido en la Ley Orgánica 15/1999, de 13 de
Diciembre, de Protección de Datos de carácter
Personal le informamos que sus datos personales
quedarán incorporados en los ficheros de la empresa,
con el fin de poderle prestar y ofrecer nuestros
servicios además de noticias relacionadas con
nuestra actividad. Así mismo, le
informamos de la posibilidad de que ejerza los
derechos de acceso, rectificación, cancelación y
oposición de sus datos de carácter personal siendo
el responsable del fichero la propia empresa, cuya
dirección figura en la parte superior.
_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev