Projet

Général

Profil

Paste
Télécharger (6,41 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / admin_menu / README.txt @ 76df55b7

1

    
2
-- SUMMARY --
3

    
4
The Administration menu module displays the entire administrative menu tree (and
5
most local tasks) in a drop-down menu, providing administrators one- or
6
two-click access to most pages.  Other modules may also add menu links to the
7
menu using hook_admin_menu_output_alter().
8

    
9
For a full description of the module, visit the project page:
10
  http://drupal.org/project/admin_menu
11

    
12
To submit bug reports and feature suggestions, or to track changes:
13
  http://drupal.org/project/issues/admin_menu
14

    
15

    
16
-- REQUIREMENTS --
17

    
18
None.
19

    
20

    
21
-- INSTALLATION --
22

    
23
* Install as usual, see http://drupal.org/node/895232 for further information.
24

    
25
* You likely want to disable Toolbar module, since its output clashes with
26
  Administration menu.
27

    
28

    
29
-- CONFIGURATION --
30

    
31
* Configure user permissions in Administration » People » Permissions:
32

    
33
  - Use the administration pages and help (System module)
34

    
35
    The top-level administration categories require this permission to be
36
    accessible. The administration menu will be empty unless this permission is
37
    granted.
38

    
39
  - Access administration menu
40

    
41
    Users in roles with the "Access administration menu" permission will see
42
    the administration menu at the top of each page.
43

    
44
  - Display Drupal links
45

    
46
    Users in roles with the "Display drupal links" permission will receive
47
    links to drupal.org issue queues for all enabled contributed modules. The
48
    issue queue links appear under the administration menu icon.
49

    
50
  Note that the menu items displayed in the administration menu depend on the
51
  actual permissions of the viewing user. For example, the "People" menu item
52
  is not displayed to a user who is not a member of a role with the "Administer
53
  users" permission.
54

    
55
* Customize the menu settings in Administration » Configuration and modules »
56
  Administration » Administration menu.
57

    
58
* To prevent administrative menu items from appearing twice, you may hide the
59
  "Management" menu block.
60

    
61

    
62
-- CUSTOMIZATION --
63

    
64
* To override the default administration menu icon, you may:
65

    
66
  1) Disable it via CSS in your theme:
67

    
68
     body #admin-menu-icon { display: none; }
69

    
70
  2) Alter the image by overriding the theme function:
71

    
72
     Copy the entire theme_admin_menu_icon() function into your template.php,
73
     rename it to phptemplate_admin_menu_icon() or THEMENAME_admin_menu_icon(),
74
     and customize the output according to your needs.
75

    
76
  Remember that the output of the administration menu is cached. To see changes
77
  from your theme override function, you must clear your site cache (via
78
  the "Flush all caches" link on the menu).
79

    
80
* To override the font size, add the following line to your theme's stylesheet:
81

    
82
  body #admin-menu { font-size: 10px; }
83

    
84

    
85
-- TROUBLESHOOTING --
86

    
87
* If the menu does not display, check the following:
88

    
89
  - Are the "Access administration menu" and "Use the administration pages and help"
90
    permissions enabled for the appropriate roles?
91

    
92
  - Does html.tpl.php of your theme output the $page_bottom variable?
93

    
94
* If the menu is rendered behind a Flash movie object, add this property to your
95
  Flash object(s):
96

    
97
  <param name="wmode" value="transparent" />
98

    
99
  See http://drupal.org/node/195386 for further information.
100

    
101

    
102
-- FAQ --
103

    
104
Q: When the administration menu module is enabled, blank space is added to the
105
   bottom of my theme. Why?
106

    
107
A: This is caused by a long list of links to module issue queues at Drupal.org.
108
   Use Administer >> User management >> Permissions to disable the "display
109
   drupal links" permission for all appropriate roles. Note that since UID 1
110
   automatically receives all permissions, the list of issue queue links cannot
111
   be disabled for UID 1.
112

    
113

    
114
Q: After upgrading to 6.x-1.x, the menu disappeared. Why?
115

    
116
A: You may need to regenerate your menu. Visit
117
   http://example.com/admin/build/modules to regenerate your menu (substitute
118
   your site name for example.com).
119

    
120

    
121
Q: Can I configure the administration menu module to display another menu (like
122
   the Navigation menu, for instance)?
123

    
124
A: No. As the name implies, administration menu module is for administrative
125
   menu links only. However, you can copy and paste the contents of
126
   admin_menu.css into your theme's stylesheet and replace #admin-menu with any
127
   other menu block id (#block-menu-1, for example).
128

    
129

    
130
Q: Sometimes, the user counter displays a lot of anonymous users, but no spike
131
   of users or requests appear in Google Analytics or other tracking tools.
132

    
133
A: If your site was concurrently spidered by search-engine robots, it may have
134
   a significant number of anonymous users for a short time. Most web tracking
135
   tools like Google Analytics automatically filter out these requests.
136

    
137

    
138
Q: I enabled "Aggregate and compress CSS files", but admin_menu.css is still
139
   there. Is this normal?
140

    
141
A: Yes, this is the intended behavior. the administration menu module only loads
142
   its stylesheet as needed (i.e., on page requests by logged-on, administrative
143
   users).
144

    
145

    
146
Q: Why are sub-menus not visible in Opera?
147

    
148
A: In the Opera browser preferences under "web pages" there is an option to fit
149
   to width. By disabling this option, sub-menus in the administration menu
150
   should appear.
151

    
152

    
153
Q: How can the administration menu be hidden on certain pages?
154

    
155
A: You can suppress it by simply calling the following function in PHP:
156

    
157
     module_invoke('admin_menu', 'suppress');
158

    
159
   However, this needs to happen as early as possible in the page request, so
160
   placing it in the theming layer (resp. a page template file) is too late.
161
   Ideally, the function is called in hook_init() in a custom module.  If you do
162
   not have a custom module, placing it into some conditional code at the top of
163
   template.php may work out, too.
164

    
165

    
166
-- CONTACT --
167

    
168
Current maintainers:
169
* Daniel F. Kudwien (sun) - http://drupal.org/user/54136
170
* Peter Wolanin (pwolanin) - http://drupal.org/user/49851
171
* Stefan M. Kudwien (smk-ka) - http://drupal.org/user/48898
172
* Dave Reid (Dave Reid) - http://drupal.org/user/53892
173

    
174
Major rewrite for Drupal 6 by Peter Wolanin (pwolanin).
175

    
176
This project has been sponsored by:
177
* UNLEASHED MIND
178
  Specialized in consulting and planning of Drupal powered sites, UNLEASHED
179
  MIND offers installation, development, theming, customization, and hosting
180
  to get you started. Visit http://www.unleashedmind.com for more information.
181

    
182
* Lullabot
183
  Friendly Drupal experts providing professional consulting & education
184
  services. Visit http://www.lullabot.com for more information.
185

    
186
* Acquia
187
  Commercially Supported Drupal. Visit http://acquia.com for more information.
188