Difference between revisions of "Table llx menu"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
= Content/Contenu/Contenido =
 
= Content/Contenu/Contenido =
  
{{Flag en}} Contains the menus.
+
{{Flag en}} Contains the menus. See also page [[Menus_system]]
  
{{Flag fr}} Contient les menus.
+
{{Flag fr}} Contient les menus. Voir aussi la page [[Système_de_menus]]
  
 
{{Flag sp}} Contiene los menús.
 
{{Flag sp}} Contiene los menús.
Line 16: Line 16:
 
= Structure =
 
= Structure =
 
== Table ==
 
== Table ==
'''Version 1.3 2009/10/24'''
+
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
 
 
  |style="background-color: #e9e9ef"| <b>Field</b>
 
  |style="background-color: #e9e9ef"| <b>Field</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>
Line 42: Line 41:
 
| Menu handler name
 
| Menu handler name
 
|-  
 
|-  
| entity
+
{{FieldEntity}}
| int(11)
 
| NO
 
| UNI
 
| 1
 
|
 
| multi company id
 
 
|-
 
|-
 
| module
 
| module
Line 80: Line 73:
 
|  
 
|  
 
|  
 
|  
| 0 or Id of mother menu line
+
| 0 or Id of parent menu line
 
|-
 
|-
 
| position
 
| position
Line 98: Line 91:
 
| relative (or absolute) url to go
 
| relative (or absolute) url to go
 
|-
 
|-
| tarjet
+
| target
 
| varchar(100)
 
| varchar(100)
 
| YES
 
| YES
Line 136: Line 129:
 
| 1
 
| 1
 
|  
 
|  
| say if left menu defined in pre.inc.php and used by top menu must be overwritten by dynamic databse menu (1=yes by default)
+
| Not used (deprecated)
 
|-
 
|-
 
| perms
 
| perms
Line 161: Line 154:
 
|  
 
|  
 
| 0 if menu for all users, 1 for external only, 2 for internal only
 
| 0 if menu for all users, 1 for external only, 2 for internal only
|-
+
{{FieldTms}}
| tms
 
| timestamp
 
| NO
 
|
 
| CURRENT_TIMESTAMP
 
|
 
| last update date
 
 
|}&nbsp;
 
|}&nbsp;
  
 
== Keys ==
 
== Keys ==
'''Version 1.1 2009/10/07'''
+
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
 
 
  |style="background-color: #e9e9ef"| <b>Key</b>
 
  |style="background-color: #e9e9ef"| <b>Key</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>

Latest revision as of 15:42, 31 August 2016


En verysmall.png The documentation related to other tables is available on the page: Table SQL
Fr verysmall.png La documentation relative aux autres tables est disponible sur la page: Table SQL
Es verysmall.png La documentación relativa a otras tablas se encuentra disponible en la página: Table SQL
De verysmall.png Eine Dokumentation zu weiteren Tabellen ist auf dieser Seite verfügbar: Table SQL
Cn verysmall.png与其他表相关的文档请参阅:Table SQL


Content/Contenu/Contenido

En verysmall.png Contains the menus. See also page Menus_system

Fr verysmall.png Contient les menus. Voir aussi la page Système_de_menus

Es verysmall.png Contiene los menús.

Structure

Table

Field Type Null Key Default Extra Description
rowid int(11) NO PRI auto_increment technical index
menu_handler varchar(16) NO UNI Menu handler name
entity int(11) NO 1 See page Field Multi company id. (llx_entity->rowid)
module varchar(64) YES NULL module name if record is added by a module
type varchar(4) NO MUL type of menu (top or left)
mainmenu varchar(100) NO Name family/module (home, companies, etc.)
fk_menu int(11) NO UNI 0 or Id of parent menu line
position int(11) NO sort order of entry
url varchar(255) NO UNI relative (or absolute) url to go
target varchar(100) YES NULL target of url link
titre varchar(255) NO key for menu translation
langs varchar(100) YES NULL lang file to load for translation
level smallint YES NULL only used by auguria menu. Do not use
leftmenu varchar(1) YES 1 Not used (deprecated)
perms varchar(255) YES NULL condition to show enabled or disabled (grayed menu) if field enabled is 1
enabled varchar(255) YES 1 condition to show or hide (completely hidden)
usertype int(11) NO 0 0 if menu for all users, 1 for external only, 2 for internal only
tms timestamp NO Current date Date of last modification. See page Field Tms.

 

Keys

Key Type Fields
PRIMARY PRIMARY rowid
idx_menu_uk_menu UNIQUE menu_handler,fk_menu,url,entity
idx_menu_menuhandler_type MULTIPLE menu_handler,type