Articles
Contact Enhanced Content Plugin
- Details
- Hits: 1794
{gdata id=|0PNTqe60x_4|}With the Contact Enhanced plugin you can display forms inside Joomla Content Articles, by adding the following tag:
{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 using this code:
{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| }
For Joomla 1.6+ you have 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.ERROR: Contact (0) Not Found
- 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;
This screencast made by Dale covers the installation and usage of the Contact Enhanced plugin.

