We are Seventh Day Baptists, therefore we keep the holy Sabbath (Saturday). Read more.

Articles

Content Plugin (embed CE Form inside an article)

The Contact Enhanced Plugin
The Contact Enhanced PluginClick to watch
2:37 minutes
1052 views
Average: 5.00
Votes: 3

Description

Contact Enhanced already gives you a lot of flexibility to display your Contact page with the Single Contact Form menu item, however sometimes you might need a greater flexibility and add CE Form inside an article or inside another component that is compatible with Content plugins.

Requirement

  1. Have set up at least one category, one or more contacts;
  2. Enable the Content - Contact Enhanced Form plugin;
  3. Enable the Button - Contact Enhanced Form plugin;

How To Access

To create a new Recorded Messages Menu Item:

  • Select Extensions Plugin manager from the drop-down menu on the back-end of your Joomla! installation;
  • Search for the Contact Enhanced and enabled the Button and Content plugins;

Usage

CE Editor Button Options

 The Button - Contact Enhanced Form plugin helps you to add the correct syntax. When it is enabled you should see this button below the content editor, then click on it to open a modal window with the options (see image on the right).

Choose the options you want , then under the Contacts tab select which Contact you want to display in the form;

If you do not want to enable the Editor Button, then you can manually enter the following syntax inside the Joomla article:
{loadcontact id=|ID| }

You just have to change the ID for your contact id;

You can also add the Map or display in a modal window and a few additional options, Contact details and Contact image, by using this code:

{loadcontact id=|ID| map=|before_form OR after_form| form=|yes OR no| details=|before_form OR after_form OR before_map OR after_map| image=|before_details OR after_details|type=|embedded OR modal|text=|Text to that will display when type is set to modal|modal_width=|800l| modal_height=|500| modal_template=|beez5| fields=|cf_ID=value&cf_ID2=Another value| }

Syntax explained:

  • id: Contact Enhanced Contact's ID to load the form; * This is the ONLY required syntax parameter;
  • type: Whether or not to display the form in a modal window; Possible values: [blank], embedded, modal;
  • fields: Used to add a default value to one or more custom fields; add multiple fields in a URL query syntax, where the "&" is simply a connector for multiple fields and ID is the custom field ID;Example: fields=|subject=A custom subject goes here&cf_ID=some text|
    You can also change the email recipient by adding the recipient field like this:
    fields=|recipient=someone@domain.com&subject=A custom subject goes here&cf_ID=some text
  • Parameters only available if type=|embedded|or if there is no type parameter:
    • map: Whether to load the contact map or not. Possible values: before_form, after_form, [none];
    • details: Whether to load a contact details or not. Possible values: before_map, after_map, before_map, after_map, [none];
    • image: Whether to load the contact image or not. Possible values: before_form, after_form, [none];
  • Parameters only available if type=|modal|:
    • text: Text that will be displayed in the link; Can be text or an image;
    • modal_width: Modal window width size in pixels; Use numbers only;
    • modal_height: Modal window height size in pixels; Use numbers only;
    • modal_template: Template to load the modal window; You can choose any template installed on your Joomla site to load the Contact Enhanced form;
  • Parameters only available if the  search=|field=value| is present and if the id parameter is missing. It is a method for loading a contact  by searching for the name or another contact field. For example you can load a contact form by the Contact's name and the contact name is John Smith, then use search=|John Smith|
    • search_operator: If you don’t want to write the entire name, you can use the LIKE attribute. For example, if your contact name is John Smith, you can simply search for “John” and using the the LIKE attribute, Contact Enhanced will pull up the contact.{loadcontact search=|name=John| search_operator=|LIKE| }
    • searchfrase: if searchfrase=|any| then it will search for any of the keywords, either John or Smith; Keep in mind that it will load the first one, ordered by ordering;

If you enable the "Button - Contact Enhanced Form" Plugin in order to help add Contact Enhanced (CE) Form into an article. It will add a button below your WYSIWYG Editor.

Important:

  • Please make sure that you have Contact Enhanced component installed correctly, otherwise the plugin will not work;
  • In the Plugin Parameters (Options) set the "After form is submitted show" option in order to choose the component behavior once the form is submitted;

 

If you are using Contact Enhanced for Joomla 1.5 you only have these options:

{loadcontact id=|ID| map=|before_form OR after_form|type=|embedded OR modal|text=|Text to that will display when type is set to modal|}

This screencast made by Dale covers the installation and usage of the Contact Enhanced plugin.

Newsletter

captcha

Connect with us

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