Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>Navigation</class> | |
6 | <name>civicrm_navigation</name> | |
7 | <comment>Table to store navigation.</comment> | |
8 | <add>3.0</add> | |
8ab43c93 | 9 | <labelField>label</labelField> |
6a488035 | 10 | <field> |
8f069c03 | 11 | <name>id</name> |
1c4f4ae6 | 12 | <title>Navigation ID</title> |
8f069c03 EM |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <add>3.0</add> | |
6a488035 TO |
16 | </field> |
17 | <primaryKey> | |
8f069c03 EM |
18 | <name>id</name> |
19 | <autoincrement>true</autoincrement> | |
6a488035 TO |
20 | </primaryKey> |
21 | <field> | |
8f069c03 | 22 | <name>domain_id</name> |
1c4f4ae6 | 23 | <title>Navigation Domain</title> |
8f069c03 EM |
24 | <type>int unsigned</type> |
25 | <required>true</required> | |
26 | <pseudoconstant> | |
27 | <table>civicrm_domain</table> | |
28 | <keyColumn>id</keyColumn> | |
29 | <labelColumn>name</labelColumn> | |
30 | </pseudoconstant> | |
31 | <comment>Which Domain is this navigation item for</comment> | |
32 | <add>3.0</add> | |
6a488035 TO |
33 | </field> |
34 | <foreignKey> | |
8f069c03 EM |
35 | <name>domain_id</name> |
36 | <table>civicrm_domain</table> | |
37 | <key>id</key> | |
38 | <add>3.0</add> | |
6a488035 TO |
39 | </foreignKey> |
40 | <field> | |
8f069c03 | 41 | <name>label</name> |
1c4f4ae6 | 42 | <title>Navigation Item Label</title> |
8f069c03 EM |
43 | <type>varchar</type> |
44 | <length>255</length> | |
45 | <comment>Navigation Title</comment> | |
46 | <add>3.0</add> | |
6a488035 TO |
47 | </field> |
48 | <field> | |
8f069c03 | 49 | <name>name</name> |
1c4f4ae6 | 50 | <title>Navigation Item Machine Name</title> |
8f069c03 EM |
51 | <type>varchar</type> |
52 | <length>255</length> | |
53 | <comment>Internal Name</comment> | |
54 | <add>3.0</add> | |
6a488035 TO |
55 | </field> |
56 | <field> | |
57 | <name>url</name> | |
1c4f4ae6 | 58 | <title>Url</title> |
6a488035 TO |
59 | <type>varchar</type> |
60 | <length>255</length> | |
61 | <comment>url in case of custom navigation link</comment> | |
62 | <add>3.0</add> | |
63 | </field> | |
4926ede8 O |
64 | <field> |
65 | <name>icon</name> | |
66 | <title>Icon</title> | |
67 | <type>varchar</type> | |
68 | <length>255</length> | |
69 | <comment>CSS class name for an icon</comment> | |
70 | <default>NULL</default> | |
71 | <required>false</required> | |
72 | <add>4.7</add> | |
73 | </field> | |
6a488035 | 74 | <field> |
8f069c03 | 75 | <name>permission</name> |
1c4f4ae6 | 76 | <title>Required Permission</title> |
8f069c03 EM |
77 | <type>varchar</type> |
78 | <length>255</length> | |
79 | <comment>Permission for menu item</comment> | |
80 | <add>3.0</add> | |
6a488035 TO |
81 | </field> |
82 | <field> | |
8f069c03 | 83 | <name>permission_operator</name> |
1c4f4ae6 | 84 | <title>Permission Operator</title> |
8f069c03 EM |
85 | <type>varchar</type> |
86 | <length>3</length> | |
87 | <comment>Permission Operator</comment> | |
88 | <add>3.0</add> | |
6a488035 TO |
89 | </field> |
90 | <field> | |
8f069c03 | 91 | <name>parent_id</name> |
1c4f4ae6 | 92 | <title>Navigation parent ID</title> |
8f069c03 EM |
93 | <type>int unsigned</type> |
94 | <comment>Parent navigation item, used for grouping</comment> | |
dfbeefd8 | 95 | <pseudoconstant> |
96 | <table>civicrm_navigation</table> | |
e2c44ec0 AH |
97 | <keyColumn>id</keyColumn> |
98 | <nameColumn>name</nameColumn> | |
dfbeefd8 | 99 | <labelColumn>label</labelColumn> |
100 | </pseudoconstant> | |
8f069c03 | 101 | <add>3.0</add> |
6a488035 TO |
102 | </field> |
103 | <foreignKey> | |
8f069c03 EM |
104 | <name>parent_id</name> |
105 | <table>civicrm_navigation</table> | |
106 | <key>id</key> | |
107 | <onDelete>CASCADE</onDelete> | |
108 | <add>3.0</add> | |
6a488035 TO |
109 | </foreignKey> |
110 | <field> | |
8f069c03 | 111 | <name>is_active</name> |
1c4f4ae6 | 112 | <title>Is Active</title> |
8f069c03 EM |
113 | <type>boolean</type> |
114 | <comment>Is this navigation item active?</comment> | |
115 | <add>3.0</add> | |
6a488035 TO |
116 | </field> |
117 | <field> | |
8f069c03 | 118 | <name>has_separator</name> |
e0674c37 CW |
119 | <title>Separator</title> |
120 | <type>tinyint</type> | |
121 | <comment>Place a separator either before or after this menu item.</comment> | |
122 | <default>0</default> | |
8f069c03 | 123 | <add>3.0</add> |
e0674c37 CW |
124 | <pseudoconstant> |
125 | <callback>CRM_Core_SelectValues::navigationMenuSeparator</callback> | |
126 | </pseudoconstant> | |
6a488035 TO |
127 | </field> |
128 | <field> | |
129 | <name>weight</name> | |
7ecddde4 | 130 | <title>Order</title> |
6a488035 TO |
131 | <type>int</type> |
132 | <comment>Ordering of the navigation items in various blocks.</comment> | |
133 | <add>3.0</add> | |
134 | </field> | |
135 | </table> |