Hello,
I'm a first time poster, long time user of Chronoforms.
And I have a question I can't seem to find the answer to.
I have set up a website with Joomla 3.2.2 and Chronoforms 4.0.4 and the plugin (4.0.3) to add forms to articles.
And I'd like to be able to add the article title to the mail subject.
While searching I found two topics. One with a dead link and another using a custom element with the following code:
However this does not get the article title in the form.
This gives me the browser title of the menu item that is linked to the category of the article.
Strangely when I echo $doc->getTitle(); directly into the index.php file of my template it does display the article title on the page.
More strangely when I use this code in the template AND in the form, it displays the article title on the page and the browser title of the menu item in the form!
Has this code stopped working? Or did I miss something?
Thank you.
Wim
I'm a first time poster, long time user of Chronoforms.
And I have a question I can't seem to find the answer to.
I have set up a website with Joomla 3.2.2 and Chronoforms 4.0.4 and the plugin (4.0.3) to add forms to articles.
And I'd like to be able to add the article title to the mail subject.
While searching I found two topics. One with a dead link and another using a custom element with the following code:
<?php $doc =& JFactory::getDocument(); ?>
<input type='hidden' name='page_title' id='page_title' value='<?php echo $doc->getTitle(); ?>' />
However this does not get the article title in the form.
This gives me the browser title of the menu item that is linked to the category of the article.
Strangely when I echo $doc->getTitle(); directly into the index.php file of my template it does display the article title on the page.
More strangely when I use this code in the template AND in the form, it displays the article title on the page and the browser title of the menu item in the form!
Has this code stopped working? Or did I miss something?
Thank you.
Wim