Adding dgcontactinfo into field

More
12 years 3 months ago #33851 by mauriestate
Hi,

I am currently facing a small issue and currently need your help to solve this issue.

We are currently using this plugin extensions.joomla.org/extensions/contact...contact-details/2025 in a FC field, however the tag system of this plugin is different from other content plugins, the main function of this content plugin is to retrieve information (by field) from the Joomla default com_contact system and show it within a content, the tag is written as this:
Code:
{dgcontactinfo 5}[image]{/dgcontactinfo}

The number 5 is the contact ID of the user within the com_contact. 'Image' is what I want to show in the content, that is, the image of the user in the com_contact.

So far, everything is easy, but, I do not want to have to include the contact ID each time a user will add an item within the frontend, what I want to do is to use some kind of syntax to auto-generate the contact ID, something similar to this:
Code:
SELECT id AS value, name AS text FROM #__users WHERE id="{item->created_by}"

But, in this case, we do not want to generate the user ID but the contact ID instead, can anyone please tell me how to do this?

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
12 years 3 months ago #33862 by micker
an article about it is on faq

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 3 months ago #33874 by ggppdk
Yes you can use this:
Creating an automatic link to contact form

-- just in prefix/suffix use your text instead of the one suggested in the FAQ article


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 3 months ago #33888 by mauriestate
Hi @micker and @ggppdk

Thank you very much for pointing me back to this FAQ, I saw it and tried to use it initially but made a small mistake, that is why it was not working and I thought this solution will not work at all.

In fact, it works, the only thing is that, I forget to edit existing article and resave it for the query to work properly, now it works perfectly. I have another issue now but guess I will open a new thread since it does not concern the dgcontactinfo plugin at all but thank you again to both for the hints.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
12 years 3 months ago #33892 by micker
can we update This topic to solved ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 3 months ago #33894 by mauriestate
Hi @micker

Yes of course, the error was my fault, now it works perfectly, topic can be marked as solved. Thanks.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.297 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save