Entering Info for the New Contact in Joomla

After selecting the menu item type, you’ll see a screen that lets you enter the information for the Single Contact. Enter the information shown in Figure 5-29.

The title you want to appear for the menu item is Supplier Support, so enter it in the Menu Title field.

The Link field will be automatically filled in, depending on the selected menu item type. The Link field informs Joomla whether to open the contact form directly or display the category of the contact when the menu item is selected. The Menu Location field is used to decide in which menu you want this menu item to appear. Select Main Menu from the drop-down list.

The main thing to note is that the Select Contact field is set to John David—Store Keeper, so that the query sent via the contact form will be e-mailed to this contact.

After entering the information for the menu item Supplier Support, click the Save & Close icon to save it. Similarly, create another menu item with the name Purchase Support, entering the information shown in Figure 5-30. This time, set the Select Contact field to the contact Purchases—Purchase Manager. Because this contact is linked to the user sanjay, a query sent to the contact via the contact form will be sent to the e-mail address of sanjay.

After entering the information for the menu item Purchase Support, click the Save & Close icon to save it. You’ll find that both Supplier Support and Purchase Support appear in the list of menu items in the

Main Menu, as shown in Figure 5-31.

Now you’re ready to run your web site and see the impact of the various items you’ve created. Open the browser window pointing at your Joomla web site (at the address http://localhost/Joomlasite) and click the Refresh button. You’ll find that two menu items, Supplier Support and Purchase Support, appear in the Main Menu (see Figure 5-32).

When you select the Supplier Support menu item, which is connected to the contact John David, his detailed information (address, phone numbers, and so on) will appear at the top of the contact form link, as shown in Figure 5-33.

On clicking the Contact Form link, the contact form will open, as shown in Figure 5-34, and the query entered in it will be e-mailed to the John David contact. Depending on the installed template, you might get a bit different output. Generally, the output has two parts: information about your site and the form to send an e-mail through the site.

Similarly, if you select the menu item Purchase Support, which is connected to the contact Purchases, the information for this contact will appear above the Contact Form link, as shown in Figure 5-35.

On clicking the Contact Form link, the contact form will open up (see Figure 5-36). In this case, the query entered is sent to the contact Purchases (i.e., the query will be sent to the e-mail address for the user sanjay because the contact Purchases is linked to that user).

The mail function must be configured from the Global Configuration section for e-mail to function properly; this will be explained in Chapter 10.

Source: Harwani B M (2015), Foundations of Joomla!, Apress; 2nd ed edition

Leave a Reply

Your email address will not be published. Required fields are marked *