Drupal Tutorials and Blog Posts

Adding Metadata to Drupal Nodes

This week's tutorial explains how to add metadata to your Drupal site. By default, Drupal has no fields for metadata. Check the source code at http://drupal.org and you'll see what I mean. To fix that issue, we recommend a module called Nodewords.

Installing Nodewords to Your Drupal Site

  • Step 1: Visit http://drupal.org/project/nodewords to download the latest version of "Nodewords".
  • Step 3: Extract the files into a folders on your desktop. The folder will be called "nodewords".
  • Step 4: Login to your site's files via FTP and navigate to /sites/all/. If there isn't a folder called /modules/ here, create one.
  • Step 5: Upload the "nodewords" folder to /sites/all/modules/
  • Step 6: Go to Administer >> Site building >> Modules. You'll need to check only the first two of the four boxes if you'd like to add regular metadata:

    Enable Drupal Nodewords

  • Step 7: Go and create a new node. When you do, you should notice a new area labelled "Meta tags" and you'll be able to add metadata to all your nodes:

    metadata

  • Step 8: You can also give the search engines information about how this page should be crawled, by using the "Robots" checkboxes. These are the messages you can send to Google or Yahoo: robots
    • NOARCHIVE ... don't store a cache version of this page in your search results.
    • NOFOLLOW ... don't give any value to the outbound links on this page.
    • NOINDEX ... don't index this page in search results.
    • NOODP ... don't use any information from DMOZ.org to describe this site.
    • NOSNIPPET ... don't show any of this text on this page in your search results.
    • NOYDIR ... don't use any information from Yahoo Directory to describe this site.

Configuring Nodewords

The default Nodewords settings might not be to everyone's taste. There is no short cut to the Nodewords editing page, unless you to to Administer >> By Module >> Nodewords >> Meta tags. There you can choose global settings for your site's metatdata.

Comments

 
RmrJmrGrl
#1 RmrJmrGrl 2011-06-07 21:54

There isn't a Drupal 7 version of this module. How can you do this for D7?
 
 
riishi
#2 riishi 2011-07-05 16:10

Hi Steve,

I am a newbie to web development. Is there anyway by which i can automate the linking of metadata with page content. If yes please lemme know how i can do that.

Regards,
Riishi
 

Add comment


Security code
Refresh

blog-ad

Start Online Training

Members get access to all our video training. That's 1,142 training sessions in Joomla, Drupal, WordPress and Coding.

Manage All Your Joomla Sites

adminicredible

With Admincredible you can update and manage all your Joomla sites. If you have 5 or 500 sites, Admincredible will make your life easier! Visit Admincredible.com.

Latest Comments

The License for Our Tutorials

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:

  • You can re-use these tutorials.
  • You can modify these tutorials.
  • You must link back to our original tutorial.
  • You can't use these tutorials commercially.

Click here to read the full license.

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.