上QQ阅读APP看书,第一时间看更新
Time for action—create a Contact Form menu link
Now that a contact exists you can add a link to a contact form to the main menu:
- Navigate to Menus | Main Menu.
- Click on New.
- In the Select Menu Item Type list, select Contacts | Standard Contact Layout.
- Enter a Title for the menu item (for example, Contact).
- In the Parameters-Basic section, in the Select Contact drop-down box select the contact you just created: SRUP Staff.
- In the Parameters (System) section, add a Page Title (for example, Get in touch).
This will be displayed at the top of the form.
- Click on Save. The site now has a Contact menu link that displays a contact form:
What just happened?
You have used the Contacts Component to create a contact and added a menu link to a contact form. Again you have experienced how powerful menu links are in Joomla!. Just by selecting the Menu Item Type: Standard Contact Layout you have created a menu link that takes the visitor to a contact form page.
Add a Poll
The SRUP people would like to enable a bit of user interaction on their site. They suggest adding a poll, a simple survey of one multiple-choice question. In Joomla!, the polling functionality is built-in.