O'Reilly logo

Using Joomla!, 2nd Edition by Jennifer Gress, Ron Severdia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Creating Forms

Forms are very common on websites. Contact forms are the most popular. Often there is a need for highly customized forms in order to get the information you need from visitors for an array of reasons.

In this chapter, we will do both a contact form and a donation form with PayPal fields to accept a payment. This will give you a brief idea of what is possible for your website.

Contact Form with Contact Enhanced

Contacts and contact forms both are included with Joomla when it installs. The contact form isn’t particularly flexible and doesn’t always look very pretty. Thus, we are going to use a third-party extension for the Joomla Pet Center contact page/form.

Contact Enhanced is one of many extensions available from Ideal Extensions. Contact Enhanced is a commercial extension and worth every penny for the increased flexibility and ability to customize your contact page by adding extra contact detail fields and contact form by adding form fields. With Contact Enhanced you can put a contact form into a module position which is helpful on many sites where you may not want the form to take an entire page. The support for Contact Enhanced is fantastic.

Note

The following exercises are not a substitute for the developer’s documentation. It is recommended that you read the developer’s documentation as well.

For Joomla Pet Center, we are going to keep the contact form pretty basic. We will add a field in the form to collect what specific topic the visitor is contacting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required