Wiki source code of Nested: Menu Reorganization

Last modified by Vincent Massol on 2024/11/19 16:14

Show last authors
1 {{toc start='2'/}}
2
3 Notes:
4 * We need to mark on hover the active menu entry
5
6 (% class="row" %)
7 (((
8 (% class="col-xs-12" %)
9 (((
10 == Before ==
11 )))
12 (% class="col-xs-6" %)
13 (((
14 **Purpose**:
15 * Reorganize the menu entries in order to group them and limit the number of entries
16 * Group viewers, base actions and applications entries together
17 )))
18 (% class="col-xs-6" %)
19 (((
20
21 {{gallery}}
22 image:currentUserContent.png
23 image:currentUserEdit.png
24 image:currentDrawer.png
25 {{/gallery}}
26
27 )))
28 )))
29
30 (% class="row" %)
31 (((
32 (% class="col-xs-12" %)
33 (((
34 == Variants ==
35 )))
36 )))
37
38 (% class="row" %)
39 (((
40 (% class="col-xs-12" %)
41 (((
42 === 1.1: Viewers submenu ===
43 )))
44 (% class="col-xs-6" %)
45 (((
46 Group the viewers in a dedicated menu. When switching viewers we eliminate the current viewer from the list, but we could display with a check the current viewer in the menu.
47
48 |(%width='50%'%){{success}}Pros{{/success}} External grouping of the viewers |{{error}}Cons{{/error}} Gives them too much importance
49 ||{{error}}Cons{{/error}} For guests, the menu is composed of 2 submenus
50 )))
51 (% class="col-xs-6" %)
52 (((
53 {{gallery}}
54 image:viewersUserViewers.png
55 image:viewersUserMore.png
56 image:viewersUserNoPrintNoSource.png
57 image:viewersUserEdit.png
58 image:viewersGuestViewers.png
59 image:viewerGuestMore.png
60 {{/gallery}}
61 )))
62 )))
63
64 (% class="row" %)
65 (((
66 (% class="col-xs-12" %)
67 (((
68 === 1.2: Base actions submenu ===
69 )))
70 (% class="col-xs-6" %)
71 (((
72 Group the base actions in a dedicated menu. In order to execute these actions, the user needs special rights. The base actions refer to Page management actions.
73
74 |(%width='50%'%){{success}}Pros{{/success}} External grouping of the base actions |
75 |{{success}}Pros{{/success}} For guests, there is only one menu visible |
76 |{{info}}Recommended{{/info}}
77 )))
78 (% class="col-xs-6" %)
79 (((
80 {{gallery}}
81 image:baseUserBase.png
82 image:baseUserMore.png
83 image:baseUserNoPrintNoSource.png
84 image:baseGuestMore.png
85 {{/gallery}}
86 )))
87 )))
88
89 (% class="row" %)
90 (((
91 === 1.3: 1.1 + 1.2 ===
92 (% class="col-xs-6" %)
93 (((
94 Having both an administer menu and a viewers menu.
95 |(%width='50%'%){{success}}Pros{{/success}} External grouping of the base actions |
96 |(%width='50%'%){{success}}Pros{{/success}} External grouping of the viewers |
97 ||(%width='50%'%){{error}}Cons{{/error}} Too many menus
98 )))
99 (% class="col-xs-6" %)
100 (((
101 {{gallery}}
102 image:Proposition1.3.home.png
103 image:Proposition1.3.administer.png
104 image:Proposition1.3.viewers.png
105 image:Proposition1.3.more.png
106 image:Proposition1.3.mobile.png
107 {{/gallery}}
108 )))
109 )))
110
111 (% class="row" %)
112 (((
113 (% class="col-xs-12" %)
114 (((
115 === 1.1 vs. 1.2 ===
116 )))
117 (% class="col-xs-6" %)
118 (((
119 1.1 Separate Viewers
120 [[{{image reference="viewersUserViewers.png" width="100%"/}}>>attach:viewersUserViewers.png]]
121 [[{{image reference="viewersUserNoPrintNoSource.png" width="100%"/}}>>attach:viewersUserNoPrintNoSource.png]]
122 )))
123 (% class="col-xs-6" %)
124 (((
125 1.2 Separate Base actions
126 [[{{image reference="baseUserBase.png" width="100%"/}}>>attach:baseUserBase.png]]
127 [[{{image reference="baseUserNoPrintNoSource.png" width="100%"/}}>>attach:baseUserNoPrintNoSource.png]]
128 )))
129 )))
130
131 (% class="row" %)
132 (((
133 (% class="col-xs-12" %)
134 (((
135 == A: Group Watch entries ==
136 )))
137 (% class="col-xs-6" %)
138 (((
139 Group Watch entries, just like we have for Export, and provide the functionality inside a modal
140 )))
141 (% class="col-xs-6" %)
142 (((
143 [[{{image reference="watch.png" width="200px"/}}>>attach:watch.png]]
144 )))
145 )))
146
147 (% class="row" %)
148 (((
149 (% class="col-xs-12" %)
150 (((
151 == B: Provide an extension point for Applications ==
152 )))
153 (% class="col-xs-6" %)
154 (((
155 Group Applications related entries, like Watch, Annotate, Share, etc.
156 {{jiraIssues}}
157 XWIKI-10766
158 {{/jiraIssues}}
159 )))
160 (% class="col-xs-6" %)
161 (((
162 [[{{image reference="applications.png" width="200px"/}}>>attach:watch.png]]
163 )))
164 )))
165
166 (% class="row" %)
167 (((
168 (% class="col-xs-12" %)
169 (((
170 == C: Remove 'Print preview' ==
171 )))
172 (% class="col-xs-6" %)
173 (((
174 This is an older feature. The print functionality should be handled by the browser
175 )))
176 (% class="col-xs-6" %)
177 (((
178 [[{{image reference="print.png" width="200px"/}}>>attach:print.png]]
179 )))
180 )))
181
182 (% class="row" %)
183 (((
184 (% class="col-xs-12" %)
185 (((
186 == D: Remove 'View Source' ==
187 )))
188 (% class="col-xs-6" %)
189 (((
190 This is a technical feature for advanced users. We could remove this functionality or move it in another part (an idea would be to provide the link inside the #Information viewer)
191 )))
192 (% class="col-xs-6" %)
193 (((
194 [[{{image reference="source.png" width="200px"/}}>>attach:source.png]]
195 )))
196 )))
197
198 (% class="row" %)
199 (((
200 (% class="col-xs-12" %)
201 (((
202 == Drawer ==
203 )))
204 (% class="col-xs-6" %)
205 (((
206 )))
207 (% class="col-xs-6" %)
208 (((
209 [[{{image reference="drawer.png" width="200px"/}}>>attach:drawer.png]]
210 )))
211 )))

Get Connected