官术网_书友最值得收藏!

Modules

A module is a community-created plugin that enhances Drupal's core functionality. From XML sitemaps to better page titles, modules are crucial to the search engine optimization of any Drupal site. Installing modules is easy and once you know how to install one, you probably know how to install them all.

Note

For a complete explanation of installing modules, check out the following links: http://drupal.org/node/120641 and http://drupal.org/node/120642.

Installing 99% of Drupal modules:

In the upcoming chapters, you'll come across a lot of Drupal modules. You need to carry out the following steps in order install 99% of Drupal modules:

  1. Download the module from http://drupal.org/project/Modules and extract it.
  2. FTP to your Drupal site. Drop the extracted module folder into the sites/all/modules folder (if that directory is not there then create it).
  3. Using your browser, visit http://www.yourDrupalsite.com/user and log in.
  4. Now visit http://www.yourDrupalsite.com/admin/build/modules/. If you forget this URL, just go to the admin page and click the Modules link.
  5. Select the checkbox next to the module that you just installed. If needed, also tic any sub-modules that you just installed.
  6. Click on the Save Configuration button. In a couple of seconds, the newly selected module will install itself. Any errors will appear in red.
  7. Go to http://www.yourDrupalsite.com/admin/user/permissions and set the permissions for that module so that different roles can use or administer the new functionality that the module has added (not required for all modules).
  8. Go to http://www.yourDrupalsite.com/admin and you'll see links to customize the settings of your newly installed module.

Installing the remaining 1% Drupal modules

If the module isn't working, be sure to read the README.txt file that came with the module. Sometimes, there are extra steps required to fully install a module.

Tip

Drush: The alternative to manual Drupal module installation

If you're comfortable with using the Unix command line, you should consider Drush. Drush is a module created by Moshe Weitzman that provides a command line shell and Unix scripting interface for Drupal. After you install it, you'll be able to use commands like drush dl modulename and drush enable modulename to install and enable modules. No trips to drupal.org and no admin screens so it's very fast.

Essential SEO modules

Now that you know how to install modules, there are several that you'll need in order to optimize your Drupal site.

What follows is a list of the non-core Drupal modules you'll use most often for SEO. (Non-core means not included in the base Drupal installation. However, something might be included in Acquia Drupal so check your Modules admin screen first!) We'll cover almost all of these in more detail later in the book. You can either download them all and install them on your site or grab them one at a time as you work on each SEO task. Either way, don't enable them until you're clear what they do and how to configure them. Sometimes, careful setup is required to get the optimal benefit from a module.

Optional SEO modules

There are a few more SEO modules which are optional. Let's have a look at them.

Non-SEO modules

There are so many good, helpful modules; it's hard to mention them all. Here are a few non-SEO modules that I consider to be a must for any site I'm working on.

  • Administration Menu: It makes it quick and easy to get to all the admin functions of your web site.
  • Backup and Migrate: It simplifies the task of backing up and restoring your Drupal database or migrating data from one Drupal site to another.
  • Devel: It makes it easy to generate a bunch of nodes, taxonomies, and users for testing purposes. It has other helpful functions as well.
  • Notify: It sends periodic emails with details of all changes to a site.
    • Use if you want to review all posts, forums, or comments posted to your site. Great for responding to comments as they happen.
    • To download this module, follow this link: http://drupal.org/project/notify
  • Search 404: Instead of a file not found error if a page is missing, it does a search on the keywords in the URL to show possible matches.

Tip

PHP memory limits and module installation

If you install a lot of modules in Drupal then you may come across the dreaded "White Screen of Death". It often occurs when you visit the Administer | Modules page; you'll see nothing but a white screen. This means that PHP—the language that Drupal is written in - has run out of memory. There are several ways to increase the allotted memory. The easiest is to add the line php_value memory_limit 32M to your .htaccess file in the Drupal root. You can adjust this to 48M, 64M or even higher, but 32M typically works fine and conserves memory. Don't just max it out as that's the amount of memory that Drupal will use for each visitor and it adds up quickly, especially on shared servers. There are other options if this doesn't work. To find out more, visit http://drupal.org/node/31819.

主站蜘蛛池模板: 任丘市| 和硕县| 全州县| 临沧市| 大新县| 逊克县| 慈溪市| 永登县| 巴青县| 兴和县| 渝中区| 诸暨市| 景泰县| 通山县| 富源县| 乐陵市| 习水县| 南乐县| 子洲县| 淮安市| 茶陵县| 荥经县| 宜宾市| 乐都县| 昌江| 兴和县| 门源| 泰安市| 巧家县| 金塔县| 沙田区| 调兵山市| 聂拉木县| 沧源| 河北省| 故城县| 吉木乃县| 西青区| 黔东| 清原| 铜梁县|