/[drupal]/contributions/modules/contact_forms/README.txt
ViewVC logotype

Diff of /contributions/modules/contact_forms/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.2, Thu Sep 25 09:03:49 2008 UTC revision 1.1.2.3, Wed Dec 31 12:50:35 2008 UTC
# Line 1  Line 1 
1  $Id: README.txt,v 1.1.2.1 2008/01/13 04:38:58 gpdinoz Exp $  $Id: README.txt,v 1.1.2.2 2008/09/25 09:03:49 gpdinoz Exp $
2    
3  CONTACT_FORMS.MODULE  CONTACT_FORMS.MODULE
4    
# Line 11  unique path, for each of the contact for Line 11  unique path, for each of the contact for
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}'.
 This module replaces spaces in the {category} with underscores}  
14  e.g. for the {category} "Jill Jones" the path to the unique  e.g. for the {category} "Jill Jones" the path to the unique
15  form is "contact/Jill_Jones".  form is "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
18  can specify a page to redirect to. The default fall back  can specify a page to redirect to. The default fall back
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 'Jill Jones' with a title = 'Contact jill Jones' and the subject
25  'Enquiry about Sales'.  'Enquiry about Sales'.
26    
 NOTE: replace any spaces in the path with underscores.  
27    
28  Requirements  Requirements
29  ------------  ------------
# Line 59  and lay it out how you would like it. Li Line 57  and lay it out how you would like it. Li
57  be made with the following code. [using the drupal link function]  be made with the following code. [using the drupal link function]
58    
59  <?php  <?php
60  print l('Email Jill Jones', 'contact/Jill_Jones');  print l('Email Jill Jones', 'contact/Jill Jones');
61  ?>  ?>
62  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
63  path is entered that doesn't exist.  path is entered that doesn't exist.
# Line 77  This will give you a list of links to th Line 75  This will give you a list of links to th
75    print '<div id="contact-list">';    print '<div id="contact-list">';
76    print '<div class="item-list"><ul>';    print '<div class="item-list"><ul>';
77    while ($contact = db_fetch_object($result)) {    while ($contact = db_fetch_object($result)) {
78      $cleanurl = str_replace(' ', '_' ,$contact->category);      print '<li>'. l($contact->category , 'contact/'. $contact->category) .'</li>';
     print '<li>'. l($contact->category , 'contact/'. $cleanurl) .'</li>';  
79    }    }
80    print '</div>';    print '</div>';
81    print '</div>';    print '</div>';

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2