Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

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

# Date Auteur Commentaire
2e0f6994 18/03/2020 23:12 Assos Assos

Weekly update of contrib modules

4f315dab 17/02/2016 22:49 Assos Assos

Weekly update of contrib modules

c8740e19 22/10/2014 22:49 Assos Assos

Weekly update of contrib modules

f7a2490e 13/02/2014 15:56 Assos Assos

git mv htmltest drupal7

Voir les 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:

Installation

  1. To install the module copy the 'menu_attributes' folder to your sites/all/modules directory.
  2. Go to admin/modules. Filter for ‘Menu Attributes’ and enable the module. Read more about installing modules at http://drupal.org/node/70151

Configuration

  1. Go to admin/people/permissions. Filter for the ‘Menu Attributes’ section. Set appropriate permissions.
  2. Go to admin/structure/menu/settings. Review instructions on this screen.
  3. Go to admin/build/menu
  4. Select the menu links you want to edit (In this example we will edit the menu 'Navigation’).
  5. Under operations for that menu, click ‘list links’.
  6. Click on any 'edit' link under the 'Operations' column.
  7. 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.

  8. 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

  1. Go to the module issue queue at http://drupal.org/project/issues/menu_attributes?status=All&categories=All
  2. Check if your particular issue exists. If not, click on the CREATE A NEW ISSUE link.
  3. Fill the form.
  4. 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