Headers in letters

Nellka 08 Jun, 2016
Нi! I need to get a title of the page in a letter. I've tried this
http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2631-how-can-i-get-information-about-the-current-page.html
and this https://www.chronoengine.com/forums/posts/f2/t94694.html
But in the e-mail I get only "Array".

I'm using ChronoForms5 Menu Item in modal on the page.
GreyHead 08 Jun, 2016
Hi Nellka,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
Nellka 08 Jun, 2016
When Debugg on i get errors Array () (see attahc.)
I put the code
<?php
$doc =& JFactory::getDocument();
?>
<input type='hidden' name='title' id='title' value='<?php echo $doc->getTitle(); ?>' /> 

in onload event, custom code. Maybe it's not correct?
GreyHead 08 Jun, 2016
Hi Nellka,

Please try this version
<?php
$jdoc = JFactory::getDocument();
?>
<input type='hidden' name='title' id='title' value='<?php echo $jdoc->getTitle(); ?>' /> 

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