Skip to content

Automatic contact forms

With automatic contact forms, the email addresses of persons and organizations on a site can be replaced by a contact form.

An automatic contact form can be set up as follows:

  • In the site or subsite where you want to display contact forms instead of email addresses, set the sitemap attribute mercury.contact.form to the value “true”.
  • Set up a detail page for the content types Person, Organization, and, if necessary, Contact Information.
  • Drag a new row onto the detail page and a /en/elements/content/organization into the newly created row.
  • Open the element settings for the form and select the “Dynamic contact form” mode.
  • Configure the form according to your preferences.

Do not use a detail page that also displays other content elements; instead, use a dedicated detail page for contacts. However, the three contact types - person, organization, and contact information - can share a detail page.

The form can be freely configured. In addition to the usual configuration options for forms, two additional macros are available:

  • %(contact.name): shows the name of the contact in the email subject line or in the email text
  • %(contact.form): shows the public URL for the contact form in the email text  

Finally, it is recommended to configure a modern captcha for contact forms to avoid spam.

Clicking on the “Click to send email” link does not open the user's local email program, as is usually the case with persons, organizations and contact information, but instead opens a page with a contact form.

Prof. Maxi Median Musterfrau  Pers.

Prof. Maxi Median Musterfrau Pers.

CEO
Musik und Klang GmbH
Pariser Platz
10117 Berlin

One person for the test.

Team user interface

We develop OpenCms

Team user interface

An der Wachsfabrik 13
Krämer 2nd floor
50996 Köln
NRW Germany

OpenCms is a powerful open source web content management system developed by us. The system offers features that are particularly suitable for large Internet or intranet applications.

We often work with web agencies or in-house development teams to offer end customers a complete solution.

Image of Dr. Mustermann

Test contact

Dr. Max Mitte Mustermann Cont.

Leader test department
Test Organisztion
An der Wachsfabrik 13
Building Krämer 2nd floor
50996 Köln
NRW DE

The person for the test.