HandsOn Contact Form

Let's put together everything we've learned so far and get that contact form, pictured in Figure 2-35, set up.

Figure 2-35. A contact form for the website

1. First, enable the Contact module. Go to AdministersSite buildings-Modules (admin/build/modules), check the box next to "Contact module" under the "Core - optional" package, and click "Save configuration."

2. Next, we need to set up the contact form's settings. Go to AdministersSite buildings-Contact form (admin/build/contact).

3. Click "Add category" (admin/build/contact/add), enter the settings from Table 2-15 as pictured in Figure 2-36, and click Save.

Table 2-15. Contact category settings Setting Value Category Website feedback Recipients (enter your email address)

Auto-reply Thanks for sending feedback about our website! We will respond to your inquiry shortly.

Home > Administer > Site building > Contact form

1

Contact form List WM.EBHB Settings

Category:

j Website feedback

Example: 'website feedback' or 'product Information'.

Recipients:

[email protected]

Example: '[email protected]' or '[email protected],[email protected] To specify multiple recipients, separate each e-mail address with a comma.

Auto-reply:

Thanks for sending feedback about our website! We will respond to your inquiry shortly.

Auto-reply:

Thanks for sending feedback about our website! We will respond to your inquiry shortly.

Optional auto-reply. Leave empty if you do not want to send ttie user an auto-reply message. Weight:

When listing categories; those with lighter [smaller) weights get listed before categories with heavier (larger) weights. Categories with equal weights are sorted alphabetically.

SeFected:

Figure 2-36. Settings for the website feedback contact form category

4. Repeat the previous steps to enter another category for "Sales opportunities." You can set this category to go to a different email address, if you'd like.

5. Next, we'll want to add a link in the website navigation to the contact form for visitors. This module happens to conveniently provide us with a menu item all ready to use, but it is not enabled by default. Anytime a module provides a menu item for you, it will always appear in the Navigation menu by default. We can easily move it to wherever we want, though. Go to Administer^Site build-ing^Menus^Navigation (admin/build/menu-customize/navigation).

6. Find the "Contact (disabled)" menu item in the list (it will be grayed out). Click the "edit" link for it.

7. Enter the settings from Table 2-16, and click Save.

Table 2-16. Contact menu item settings

Setting

Value

Menu link title

Contact (default)

Description

Get in touch with us

Enabled

Checked

Expanded

Unchecked (default)

Parent item

<Primary links>

Weight

10

8. Finally, we need to configure permissions on the contact form so that visitors may use it. Head to AdministersUser managementsPermissions (admin/user/permission) and enable the permissions listed in Table 2-17. Click "Save permissions" when finished.

Was this article helpful?

0 0

Post a comment