K2 item plugin

ljk 13 May, 2011
Hi,

I need to use chronoforms in a K2 item, but K2 doesn't support article content plugins.

So, what I did is hack the chronoform plugin and change it into a K2 plugin. But the only way I could get it to work is to use the same name as the regular article plugin. So, now I can't use the normal article plugin in an article.

What I would like is to be able to use the chronoform plugin in both an article and a K2 item. To do that the chronoform plugin would need to be changed to a system plugin or have a separate plugin for articles and K2. Then the chronoform component would need to recognize both forms of the plugin syntax, so you would have {chronocontact} and say {chronocontactk2}.

This is for a Joomla 1.5.23 site using Chronoforms 3.2.

Any suggestions on how best to attach this?
I have attached the hacked chronoform k2 plugin

Thank you for any help/suggestions on this.
GreyHead 14 May, 2011
Hi ljk,

I don't know much about K2 but the Extensions Directory entry says

K2 fully supports the Joomla! API, which means all Joomla! plugins will function properly within the K2 component & modules, either in the frontend or backend.



So I installed a copy of the current release, created a quick test item and was able to use the ChronoForms plug-in with it OK?

Bob
ljk 14 May, 2011
Hi,

I gather that you added the plugin code in the item content area?

What I need is to be able to have the form display automatically in the item detailed listing page, for every item. So, I need to be able to add it to the item template so the form will display for each item. See: http://www.melsmith.line49design.com/listings/item/11-#303-820-habgood-street-surrey at the bottom of the left column is an inquiry form, which I need to have display on every listing page. When I tried using the plugin in the item template, it didn't work.

Does that make more sense?

Thank you.
ljk 26 May, 2011
Hi,

What would really work great is if the content chronoforms plugin was changed to a system plugin. Then it would work in regular Joomla articles, K2 and other extensions. The Google Maps plugin was recently changed from a content plugin to a system plugin and now you can use it all over the place. It works great in K2 items and you don't have to do anything special to get it to work in them now.

Any possibility of that being done?

Thank you.
GreyHead 28 May, 2011
Hi ljk,

I'm not sure what is involved but it sounds possible. The plug-in is not very complex.

I took a quick look at other system plug-ins and the main differences seem to be in naming the folders and functions.

I'll try to experiment when I have some time.

Bob
ljk 28 May, 2011
Hi,

Thank you. I think this would be a great addition to chrono forms bu make it even more flexible.

Thanks again for considering the suggestion.
ljk 24 Sep, 2013
Hi,

Just wondering if you got anywhere with making the plugin a system plugin instead of content plugin. I need to update the website using K2 from Joomla 1.5 to Joomla 3 and running into the same problems again. But the solution that I used last time isn't working in Joomla 3.

Thank you,
GreyHead 25 Sep, 2013
Hi ljk,

I still have this tab open in my browser from 2011 - it's the oldest one now :-(

I've never got back to look at it - but I have seen that other people seem to have posted here that they have ChronoForms working with K2 (I'm still not a K2 user). It might also be worth dropping a question to Max using the Contact Us form to see if he has a fix.

Bob
ljk 25 Sep, 2013
Hi,

The plugin works if you have a field in your K2 items and put for example:
{chronoforms}form{/chronoforms}
but if you want to call the plugin from the K2 template file all you get out is:
{chronoforms}form{/chronoforms}
instead of the actual form.

I will try contacting Max as you suggest as using the K2 forum never gets you an answer.

Thank you for your reply.
This topic is locked and no more replies can be posted.