PHP

Sunday, June 2, 2013

Adding a Contact Us form in Drupal 7

Every website needs a contact us form so that the visitors can easily contact the site owner. In case of Drupal, there is a core (packaged with Drupal installation) contact module. This module is disabled by default. I will explain you how to enable and customize this module in Drupal.

Assuming that you have already installed Drupal in your system or server.

  1. Go to modules section (http://www.sitename.com/admin/modules).


  2. Search for contact (I use Browser's search cntrl+f).
  3. Enable It by clicking the check box before it.
  4. Go to contact configuration section (http://www.sitename.com/admin/structure/contact)
  5. Suppose you want to give your users the choice to select where they want to send their contact details then  you can create contact categories here with separate emails to each categories.
  6. Finally, you need to enable the contact link in the menu.
  7. Go to admin -> structure -> menu (http://www.sitename.com/admin/structure/menu).
  8. By default contact menu is under the navigation and it is disabled.
  9. Edit the menu enable it and you are ready to go....


No comments:

Post a Comment