Displaying a form in K2 items

Mushr00m 01 May, 2012
Hi all,

I'm trying to display with the Chronoform plugin, a form in all my K2 items but it's not working.
If I put the code {chronoforms}{/chronoforms} directly in the K2 item it work, but in my case I need to put it in the template so all the K2 items have it where I want. I don't know if the OnContentPrepare is before or after reading the template but it seems that the plugin doesn't see the code so No form....😟

Do you know how to do it ?

Thanks
GreyHead 01 May, 2012
Hi Mushr00m,

I think - from a post by ljk about a year ago - that K2 only supports System Plug-ins, not Content plug-ins (which the ChronoForms plug-in is). There was also another thread where there was a mismatch in the triggering events: the ChronoForms plug-in is triggered on the Joomla! OnContentPrepare event.

In other words, the ChronoForms plug-in is set up to work in Joomla! articles and K2 needs something different.

Bob
Mushr00m 01 May, 2012
So there is not way to make it works in K2 template ?
GreyHead 01 May, 2012
Hi Mushr00m,

Yes, either write a ChronoForms System plug-in or get K2 to support Content plug-ins.

Bob
Mushr00m 02 May, 2012
Thanks for the Reply, I tried creating a new plugin but it's not seems to work so I decide to create a link to the contact form external to K2... So no solution for the moment to include it in K2 template for the moment.
This topic is locked and no more replies can be posted.