Forums

Enable a content plugin in a form

bytekultur 28 Nov, 2012
Hello

I have a register form and a direct menu link to it (chronoform link).
I now want to put a content item above the form - {include_content_item x} - but at the moment it is not working.
I know that there is a chronoform plugin where i could put the form into a joomla article but then some stuff of the form is not working correctly anymore (like the thank you message)...

so - i was looking around how to enable a content plugin in a component or so - but unfortunately i could not found the right code
i think it should be something like:
<?php JPluginHelper::importPlugin( 'content' );
$dispatcher =& JDispatcher::getInstance();
$results = $dispatcher->trigger( 'include_content_item', array(&$subject, $params) ); ?>

... but thats not working

for any tips I'm very thankful!
GreyHead 29 Nov, 2012
Hi bytekultur ,

If this is ChronoForms v4 then there is a Joomla! Plugins action in the Joomla! Functions group that should enable plug-ins to be used in the form.

Bob
bytekultur 03 Dec, 2012
Perfect - thank you very much!!!

All the best,
Maya
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}