root / drupal7 / sites / all / modules / menu_attributes @ 2e0f6994
Nom | Taille | Révision | Âge | Auteur | Commentaire |
---|---|---|---|---|---|
CHANGELOG.txt | 2,53 ko | c8740e19 | plus de 9 ans | Assos Assos | Weekly update of contrib modules |
LICENSE.txt | 17,7 ko | f7a2490e | environ 10 ans | Assos Assos | git mv htmltest drupal7 |
README.md | 2,89 ko | 2e0f6994 | environ 4 ans | Assos Assos | Weekly update of contrib modules |
menu_attributes.api.php | 1,66 ko | 2e0f6994 | environ 4 ans | Assos Assos | Weekly update of contrib modules |
menu_attributes.info | 372 octets | 2e0f6994 | environ 4 ans | Assos Assos | Weekly update of contrib modules |
menu_attributes.install | 2,98 ko | f7a2490e | environ 10 ans | Assos Assos | git mv htmltest drupal7 |
menu_attributes.js | 3,27 ko | f7a2490e | environ 10 ans | Assos Assos | git mv htmltest drupal7 |
menu_attributes.module | 12,2 ko | 2e0f6994 | environ 4 ans | Assos Assos | Weekly update of contrib modules |
menu_attributes.test | 9,15 ko | c8740e19 | plus de 9 ans | Assos Assos | Weekly update of contrib modules |
Dernières révisions
README
Menu Attributes
Introduction
This simple module allows you to specify some additional attributes for menu items such as id, name, class, style, and rel.
You should use this module when:
- You want to "nofollow" certain menu items to sculpt the flow of PageRank through your site.
- You want to give a menu item an ID so you can easily select it using jQuery.
- You want to add additional classes or styles to a menu item.
The module currently allows you to set the following attributes for each menu item or menu link:
- id
- name
- target
- rel
- class
- style
- accesskey
For further information please visit the following:
- For a full description of the module, visit the project page: https://drupal.org/project/menu_attributes
- To submit bug reports and feature suggestions, or to track changes: https://drupal.org/project/issues/menu_attributes
Installation
- To install the module copy the 'menu_attributes' folder to your sites/all/modules directory.
- Go to admin/modules. Filter for ‘Menu Attributes’ and enable the module. Read more about installing modules at http://drupal.org/node/70151
Configuration
- Go to admin/people/permissions. Filter for the ‘Menu Attributes’ section. Set appropriate permissions.
- Go to admin/structure/menu/settings. Review instructions on this screen.
- Go to admin/build/menu
- Select the menu links you want to edit (In this example we will edit the menu 'Navigation’).
- Under operations for that menu, click ‘list links’.
- Click on any 'edit' link under the 'Operations' column.
Scroll down the page to find the 'Menu link attributes' and 'Menu item attributes' sections. Expand either section by clicking on it.
a. Menu link attributes are added to the
<a>
link element. Follow instructions on screen.b. Menu item attributes are added to the
<li>
list element for that link. Follow instructions on screen.Click the 'Save' button.
Another way of setting menu attributes is to edit any page, scroll to 'Menu settings' and click the checkbox for ‘Provide a menu link’. This will reveal the options for this menu item, including ’Menu link attributes' and 'Menu item attributes'. Follow instructions on screen.
Troubleshooting
- Go to the module issue queue at http://drupal.org/project/issues/menu_attributes?status=All&categories=All
- Check if your particular issue exists. If not, click on the CREATE A NEW ISSUE link.
- Fill the form.
- To get a status report on your request go to http://drupal.org/project/issues/user
Updating
Read more at http://drupal.org/node/250790
Formats disponibles : Atom