How to enable contact form and make contact form appear in main menu in Drupal 7?
In this post, we shall discuss "How to make contact form appear in main menu in Drupal 7?" In Drupal 7, the contact module is included in the Drupal 7 core. We just have to enable it in the modules page as it is not enabled by default.
Step 1: enable the contact module in Drupal 7
- Login to the Drupal site as admin
- Click on Modules tab
- In the “Core” section (the first section), find “Contact”
- Bu default, the Contact module in Drupal is disabled
- Click and check on it to enable
- Scroll down and click "Save Configuration" to enable Contact module in Drupal
Step 2: Configure Contact Module permissions
After enabling the Contact module from the Drupal Modules Page, edit permissions for Contact forms to configure who can use the contact form in the Drupal site. Follow the steps below to set permissions for the Contact Module-
- From the Module Page, find Contact Module
- Click on the “permissions” link corresponding “contact” module in the modules page.
- You will be taken to the permissions settings page
- Scroll down till you find “Contact”
- Depending on the user role you have created in the Drupal site, the settings can be enabled for each role. If you have not yet created any user roles, by default, you will see “anonymous user”, “authenticated user” and “administrator”.
- Check on the permission corresponding to the appropriate roles to enable the contact form settings for each role.
- If you want any user to use the contact form in the website site wide, then you need to check “anonymous user”.
Step 3: How to show contact form in the menu in Drupal 7?
Now that we have enabled the contact module and also set permissions to set who can use the contact form, we may need to add contact form in the menu so that users can access it easily.
Follow the steps below to add contact form in the menu in Drupal:
- Go to “Structure” > “Menus”
- Next to “main menu”, click on “list links”
- You should be able to see “contact” in the links listed
- Check to enable
- Click Save Configuration
Related: How to create different types of contact forms? See here.
If you want any user to use the contact form in the website site wide, then you need to check “anonymous user”.drupal development company
ReplyDeleteThat's right.
Delete