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