Contact module

The contact module is one of the core modules that comes with Drupal. It is by default, disabled. It enables your site to have a contact form for users to use. This way, they can use a form to contact you and you do not have to have your email address on your website where it can be harvested.

The contact form can also be set up for multiple categories for users/visitors to choose (e.g. to Sales, Feedback, Complaints departments in your organization)

Enable Contact Module

Administer > Site Building > Modules > Contact

Once enabled, it will be visible as "Contact form" under your "Site Building" section.

Set up your Contact form

Administer > Site Building > Contact form

Here you will see the help text talking about setting up 'categories'. By this, they mean 'categories' that might be analogous to different departments in your organization For example, you can set up a "Website Feedback" category and a "Sales" or "Complaints" category. These are the 'categories' that a user will be able to select when they use the contact form to contact you. Each of those 'categories' can also be assigned to different email addresses that you have.

Add Category[tab]

  • enter name of 'category' (e.g. Website Feedback)
  • enter Recipients (i.e. your email address that the message from the user/visitor will be sent to)
You can optionally set up an Auto-reply and under 'Selected', you can specify "Yes" if you want this 'category' set as the default category in your website contact form.

You can continue to 'Add category' if you have more than one department and/or you wish to receive user-messages from the site via different email addresses you have.

Settings[tab]

Here you can specify the text-help or text-message that is displayed to your visitors on the contact form.
The default text reads:
You can leave a message using the contact form below.

'Contact' as a Menu item

You need to have some visible link so that your users/visitors can get to the contact form.
This is automatically already set up in Drupal, but by default, is disabled. You need to enable it so that it becomes visible.
Administer > Site Building > Menus > Navigation
Enable Contact.
And Save Configuration.

You will now see that there is a "Contact" link in your navigation area.

To configure this further, you can click the "edit" link next to the 'contact'.

You can give it a different link-text ('Menu link title') or even make this contact-link disappear from the Navigation block and appear as a 'Primary' or 'Secondary link'.

(By default, the 'Parent Item' is <Navigation> )

For example, I have the following setup:

  • Menu title: Contact Us
  • Description: Leave a message or feedback here.
  • Parent item: <Secondary links>
See "In Another Menu?" below if you want to put your contact link in another menu, and not in the Primary or Secondary links.

If you have made it into a 'Secondary' link, you can also go to rearrange the placement of the 'contact' link. It will now be found in Administer > Site building > Menus > Secondary links

Similarly, if you have made this into a 'Primary link'.

User Permissions to access the Contact form

No matter where you place it, the contact-link will not be visible to users/visitors till you give them permission to access it.

Administer > User Management > Permissions

Under "contact module", you have to enable "access site-wide contact form" to the user roles you deem appropriate. For example, you may choose to allow 'Authenticated user(-roles)' to be able to contact you but not 'Anonymous user(-roles)'.

In another Menu?

If you have created another 'menu' to place your Contact Us hyperlink (for e.g. we created a Footer Navigation menu and put our contact us link there), then set the 'Parent item' (for your contact us) to your custom menu (i.e. we set the 'Parent item' to our custom made Footer Navigation menu.)

Then from now on you will find your 'Contact' link under:
Administer > Site Building > Menus > (the 'Parent item' menu you set it to)

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

 

Healthful Soulful Things

Custom Search