mod_qlcontact - Documentation
Display form
- Form settings>display form: "yes"
- Redirection:"index.php/yourThankyoupage" (if you leave it blank, page will be empty aufter form submission)
How to get started (com_contacts)
I keep it short, in internet you can find many how-tos how to use com_contacts of J! core, e. g. http://www.siteground.com/tutorials/joomla25/joomla_contactus_page.htm;
you use mod_contact as follows
- go to components>contacts
- create new contact with name, e-mail address, position, image if you like
- save contact
- got to extensions>modules
- create new mod_qlcontact
- basic settings>display type: "Contact component"
- basic settings>contact: Select you contact
- dara setting> show data: "yes"
- Data: Select data to be displayed, e. g. name, e-mail address etc.
- assign it to menu items just as usual
- save
- that's it!
By the way: "display type" is whether original contact data or user-linked contact is displayed.
With contact / user select, a user/contact is selected whose data is to be displayed.
Hope this works:-)
Add additional form fields
- Generate an overriding layout. Generate copies of all files that you can find in modules/mod_qlcontact/tmpl/...
- generate overriding folder
- templates/yourTemplate/html/mod_qlcontact/
- Copy all .php-files into overriding template folder, e. g.:
- templates/yourTemplate/html/mod_qlcontact/default.php
- templates/yourTemplate/html/mod_qlcontact/default_data.php
- ...
- Go to templates/yourTemplate/html/mod_qlcontact/default_form.php
- Add your additional fields here in html.
- Add verifications via html (attribute required="required", e. g. <input type="text" name="product" required="required" id="product" />)
- Add verifications via Javascript (for devs who can code Javascript)
- A lot of testing until the e-mail and the data sent delivers the data you want;-)
- And: you're lucky*, that's it
*Fortunately mod_qlcontact send all post data given to it, no further coding needed, strike! Haven't tried it myself, but it should work fine anyway:-)
How to get started (com_users)
If you want to display a users contact data:
- users > users (only if you need a new user)
- create a user
- save
- components> contacts
- create a contact, see above
- select that very user in "linked user" param.
- save
- got to extensions>modules
- create new mod_qlcontact
- basic settings>display type: "User component"
- basic settings>user: Select user, whose contact data you wish to display
- data setting> show data: "yes"
- Data: Select data to be displayed, e. g. name, e-mail address etc.
- assign it to menu items just as usual
- save
- that's it!
By the way: "display type" is whether original contact data or user-linked contact is displayed.
With contact / user select, a user/contact is selected whose data is to be displayed.
