Forums

Embedding form in custom component

piperpilot 01 Dec, 2010
Hopefully this is the proper place for this. I'm hoping someone can help me with what I need to add to my custom component so that it processes this directive:

{chronocontact}Formname{/chronocontact}

I would like to embed a chronoForm in the html output of my view.

Any help would be appreciated.

Thanks,
Curtis
GreyHead 01 Dec, 2010
Hi Curtis,

Your component needs to support Joomla! Plug-ins. I think you'll find some help in the Joomla! docs.

Bob
piperpilot 02 Dec, 2010
Bob,

Thanks for the response. I have tried that and followed the instructions on the Joomla website. I am registering the trigger onPrepareContent...is that the right one for this plugin? I'm gonna start digging a little deaper, but from what I understand, it could be listening for:

onPrepareContent
onAfterDisplayTitle
onBeforeDisplayContent
onAfterDisplayContent

If you have any more info on what the plugin is looking for, that would help.

Regards,
Curtis
GreyHead 02 Dec, 2010
Curtis,

I just checked the code.; the CF plug-in registers for onPrepareContent.

Bob
This topic is locked and no more replies can be posted.