| 1 |
$Id: README.txt,v 1.4 2007/09/05 12:02:20 gpdinoz Exp $ |
$Id: README.txt,v 1.5 2008/09/14 10:10:31 gpdinoz Exp $ |
| 2 |
|
|
| 3 |
CONTACT_FORMS.MODULE |
CONTACT_FORMS.MODULE |
| 4 |
|
|
| 11 |
|
|
| 12 |
The path 'contact/{category}' generates a contact form |
The path 'contact/{category}' generates a contact form |
| 13 |
for that category with a title = 'Contact {category}'. |
for that category with a title = 'Contact {category}'. |
| 14 |
e.g. path 'contact/Jill_Jones' generates a contact form |
e.g. path 'contact/Jill Jones' generates a contact form |
| 15 |
for the category 'Jil Jones' with a title = 'Contact jill Jones'. |
for the category 'Jil Jones' with a title = 'Contact jill Jones'. |
| 16 |
|
|
| 17 |
If a path is entered that does not have a category you |
If a path is entered that does not have a category you |
| 19 |
path is contact. |
path is contact. |
| 20 |
|
|
| 21 |
To define the subject of the generated form the path is as follows |
To define the subject of the generated form the path is as follows |
| 22 |
'contact/{category}/Subject_goes-here' |
'contact/{category}/Subject goes here' |
| 23 |
e.g. path 'contact/Jill_Jones/Enquiry_about_Sales' generates a contact form |
e.g. path 'contact/Jill Jones/Enquiry about Sales' generates a contact form |
| 24 |
for the category 'Jil Jones' with a title = 'Contact jill Jones' and the subject |
for the category 'Jil Jones' with a title = 'Contact jill Jones' and the subject |
| 25 |
'Enquiry about Sales'. |
'Enquiry about Sales'. |
| 26 |
|
|
| 27 |
NOTE: replace any spaces in the path with underscores. |
|
| 28 |
|
|
| 29 |
Requirements |
Requirements |
| 30 |
------------ |
------------ |
| 56 |
and lay it out how you would like it. Links to the forms can |
and lay it out how you would like it. Links to the forms can |
| 57 |
be made with the following code [using the drupal link function] |
be made with the following code [using the drupal link function] |
| 58 |
<?php |
<?php |
| 59 |
print l('Email Jill Jones', 'contact/Jill_Jones'); |
print l('Email Jill Jones', 'contact/Jill Jones'); |
| 60 |
?> |
?> |
| 61 |
This page can be set as the fall back page if a contact/category |
This page can be set as the fall back page if a contact/category |
| 62 |
path is entered that doesn't exist. |
path is entered that doesn't exist. |