Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

Contact Form in FlexiContent

10 years 6 months ago #15660 by golfplus
Hi,

I would like to use Contact Enhanced in FlexiContent to provide the possibility to visitors to contact article authors.

There is initially a content plugin to add form directly into articles, however, is it possible to insert any form tag so that contact ID is auto populated for each article author?

As you know, FlexiContent is a content construction kit based on Joomla default article system, we can create fields and attached these fields to a particular content type, while creating a content type, we can create a field and add necessary tags (code) in this field so that on frontend, when a user create an article, some information are auto-populated from the database query.

Can we do as such with Contact Enhanced, is yes, can you please provide me some hints how to do this to see if we can do it with FlexiContent so that we can purchase a subscription to Contact Enhanced?

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15661 by douglas
Dear golfplus,

There is no such feature in Contact Enhanced. If you are using Joomla 3 and want me to quote this customization for you, please send me an email using the Support -> Contact form.

Best regards,

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15662 by golfplus
Hi,

OK, message sent through the support contact form, waiting for your response by email. Thanks.

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15663 by golfplus
Hi,

After some deep search, I found out some additional information to do this, in fact, a solution already exists to use the default Joomla com_contact to achieve what we want to do with FlexiContent, however, we want to be able to add more fields in the contact form and this is only possible with Contact Enhanced, I do not think there is any need for customization but only some small changes in the codes and links below and guess you can help us on this:

1. Create a new FLEXIcontent field of type "Select" and at the top right select the desired FLEXIcontent Types

2. In parameter "Prefix Text" enter:
<a href="index.php?option=com_contact&view=contact&id=

3. In parameter "Suffix Text" enter:
" alt="Contact">Contact this author</a>

4. Enable parameters: "Remove Space" , "Use Sql Query" and disable parameter "Use first option"

5. In parameter "Field Elements" enter:
SELECT id as value, name as text FROM #__contact_details WHERE user_id="{item->created_by}"

6. Add the field to item/category layout of the template you use

7. Edit and resave every item so that new field gets a value

I think that only the link and SQL needs to be updated here, and I am sure you can help us on this without the need of any customization.

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15664 by douglas
Dear golfplus,

That's strange. It does not seem it will work even for Joomla core contact, because the ID parameter is Contact ID not the User ID.

What I can do is create an option for Contact Enhanced to read the another parameter, let's say "authorid" and send the email to the Joomla user (id).
This will not show the Author name or any other information in the form, so you can either choose to hide the Contact Name Or give a generic name like "Contact the author";

Best regards,

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback