Articles

HTML Template System

Description

  HTML templates gives you great flexibility:

  • All sent emails can be delivered in HTML format;
  • Very customizable: You can choose which information to send;
  • You can have different templates for each contact, by changing the options in the Contact Edit page OR in the Menu Item options;
  • You can have separate templates for the Contact email and for the user copy;

Requirement

  1. Have created a contact and a contact category; If you didn't get this far, please read the Cheat Sheet.
  2. In case you are configuring the "Edit Notification" email template you also need to have configured the Front-end editing feature. Please read the Front-end editing article.

Usage

There are three types templates:

  1. Email: Which can be used for the email and the copy message sent to the user;
  2. Thank you page: Which is the message sent to the user after the form submission when you set the parameter Thank you message to Show sent email message.
  3. Edit notification: Which is an email notification when the user has changed the contact linked to his username from the front-end;

How to create new templates?

Select Components → Contact Enhanced → Templates from the drop-down menu on the back-end of your Joomla! installation, then click on the New button;

In order to add a new template (recommended) click on the New button, give the template a name, choose the template type and add the text you want to display in the template.

You can also use some syntaxes, which are available at the right side of your template (see screenshot below). The most common syntaxes used are:

SyntaxDescription
{custom_fields:1,2,5,7,34} Will add only the selected Custom Field ids {custom_fields} - will add all custom fields
{custom_fields} will add all custom fields
{post:ALIAS} Where ALIAS is your Custom Field's Alias in lowercase.
You cannot change the alias for the following fields: name, lastname (surname), email, subject, recipient

Then you can set the templates in the Component Options (Components Contact EnhancedOptions) for the Global Options, OR in the Contact Edit page under the Templates tab OR you can override it in the Contact Enhanced Single Contact Form menu item.

Important notes:

  • If you are using the Content Plugin and want to load the HTML Template for the Thank you Page. Go to the Extensions -> Plugin manager, select Contact Enhanced Content Plugin and set the "After form is submitted show"option to "Use Global";

Screenshots:

Contact Enhanced Template Manager

Contact Enhanced Template Manager -> Edit page

Newsletter

captcha

Connect with us

We're on Social Networks. Follow us & get in touch.
You are here: Start page