1 |
85ad3d82
|
Assos Assos
|
Menu Icons Module
|
2 |
|
|
================================================================================
|
3 |
|
|
|
4 |
|
|
DESCRIPTION:
|
5 |
|
|
--------------------------------------------------------------------------------
|
6 |
|
|
This module allows you to upload an image in the menu-item's configuration form.
|
7 |
|
|
The uploaded image is added as an background image to the menu item.
|
8 |
|
|
|
9 |
|
|
USAGE:
|
10 |
|
|
--------------------------------------------------------------------------------
|
11 |
|
|
After installing the module you can configure its global settings by navigating
|
12 |
|
|
to: admin/config/user-interface/menu_icons. Uploading an image for a menu-item
|
13 |
|
|
can be done at the menu items settings form (e.g.:
|
14 |
|
|
admin/structure/menu/item/1/edit).
|
15 |
|
|
|
16 |
|
|
The text of the menu item can be hidden by the adding the following CSS code to
|
17 |
|
|
your theme's stylesheet:
|
18 |
|
|
|
19 |
|
|
.menu_icon {
|
20 |
|
|
display: block;
|
21 |
|
|
overflow: hidden;
|
22 |
|
|
padding-left: 100%;
|
23 |
|
|
}
|
24 |
|
|
|
25 |
|
|
DRUSH:
|
26 |
|
|
--------------------------------------------------------------------------------
|
27 |
|
|
nb: if you clear cache with drush without a site explicitly configured,
|
28 |
|
|
the CSS generated by menu icons will be incorrect. This is due to a
|
29 |
|
|
limitation of drush, in that it doesn't know the site's URL if you don't
|
30 |
|
|
tell it. To pass the site's URL, use the -l flag to drush, or better
|
31 |
|
|
yet, permanently configure drushrc.php. For more information, see:
|
32 |
|
|
http://drupal.org/node/1520414 and http://drupal.org/node/743368 |