Forums

Add modules to confirmation message

danaviziteu 23 Aug, 2014
I'm tying to add a module to the confirmation message. I added the same module inside the form ursing this code:
<?php jimport('joomla.application.module.helper');
$modules = JModuleHelper::getModules('position1'); 
foreach($modules as $module)
{
echo JModuleHelper::renderModule($module);
}
?>

The code is not working for the confirmation message. It's there any way to do this?
GreyHead 24 Aug, 2014
Hi danaviziteu,

I think that the CFv4 Thanks Message action doesn't support PHP; please try using a Custom Code action instead.

Bob
danaviziteu 27 Aug, 2014
Thanks for the reply, but can you give me more details? If I add the module in a custom code before the thank you message, how can I call the code in the thank you message?
GreyHead 04 Oct, 2014
Hi danaviziteu,

Sorry for the long delay in replying :-(

Just put all the code HTML + PHP that you need in the Custom Code action and remove the Thank You page action.

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