Adding email links

IofC policy is to 'hide' email addresses behind forms, rather than publishing on web pages - in order to prevent spammers from 'harvesting' email addresses.

To do this we use the concept of 'Categories' of email form. A 'category' can be linked with (point to) a single email address for a person or organisation, or it can point to to multiple email addresses. Categories should be named in a user friendly way, as they will appear at the top of the contact us form.

For example:

  • 'John Smith' could be the category which links to the email address 'john.smith@example.com'
  • 'IofC UK' could be the category which links to the email address 'info@uk.iofc.org'
  • 'Caux Administration' could be the category which links to the email addresses of a team of people, e.g. 'admin1@caux.ch', 'admin2@caux.ch', etc

To create a link to email a person or organisation, first go to Site building -> Contact form (admin/build/contact/list) and see whether the person/organisation you want to link to already exists in the list of categories. If it does not, click the 'Add category' tab. Name the category carefully according to the above rules. Input one or more email addresses separated by commas. If you want the person using the contact form to receive an auto reply you can put some text into that box. Otherwise leave the other settings as they are.

You then use the Category to create the link in your node body. Highlight the word/s you want to transform into the link, then click on the Link icon. In the popup box leave Link type as Url. In the prototype drop down, select <other>. In the Url text box put 'contact/{categoryname}'; replacing any space/s in {categoryname} by underscores (e.g. 'contact/John_Smith') - without the apostrophes.

This will create the link which when clicked takes the visitor to the contact form and when they use it the email will go to the email address or addresses associated with the 'Category'.

Please note that the email addresses are not linked to the email addresses in our contact record database, so if an email address is updated there it will not be updated for the Category.