Additional Drupal Modules Search

As you and your registered users add more content to your Drupal site, be it blog entries, forum posting, or news posts, visitors to your site will want to be able to find content of interest. Drupal has a Search module that displays a Search box and returns a list of links to content that matches the search terms entered in the box.

To set up the Search module, follow these steps:

  1. Click Modules on the Dashboard menu bar.

  2. Select the Search check box.

    If the Search module is already selected, that means it's already active on your site and you don't need to change anything.

  3. Click Save Configuration.

  4. Choose Structure→Blocks.

    The entry Search form now appears in this list. If you had to enable it, it will show up under the Disabled section.

  5. Drag the Search form to the region of your choice.

    You can drag the items in each region to control the order within the block. For example, you can drag the Search form item to the top of the Sidebar first section to make it appear near top-left on every page of your site.

  6. Click Save Blocks.

    Your search form will now appear on your site. When users search for a word, links to content containing that word appear.

    image0.jpg

By default, the search form appears as text box and a Search button. If you want to change the appearance, follow these steps:

  1. Choose Structure→Blocks.

  2. Click the Configure link next to Search Form.

  3. In the Block Title text box, enter any text you want for a title. If you want no title, enter <none>.

    Be sure to include the angle brackets.

  4. Click Save Block.

You can use this same technique to remove the title from any block component. You can add or remove the title of any block by choosing Structure→Blocks, click the Configure link next to the block you want to modify, enter <none> for the title (or add a title), and click Save Block.

The Block form also lets you control in which region a block should appear based on which theme you are using. All your currently enabled themes appear in the Region settings. Region settings appear for each block, not just the Search block.

blog comments powered by Disqus
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.