Hi,
I'm having a small problem with a form in an article. Since it's a language related problem, I'll post in this forum.
I have a Quickform with a hidden field, and I'm using the following code in the value field:
<?php return htmlentities( JFactory::getDocument()->getBase(), ENT_QUOTES, 'UTF-8' ); ?>
I want to show the URL in the email from where the form result comes from, and this is the only way I can get it working.
The only problem is that I'm using Joomfish (also core sef url's), and the language is not shown in the url, meaning that the url isn't accessible because there's no language defined.
I've also tried using the following code, but then it displays the form title and not the article title.
<?php return htmlentities( JFactory::getDocument()->getTitle(), ENT_QUOTES, 'UTF-8' ); ?>
I've also tried with this:
<?php echo $this->article->title; ?>
but then there's no result shown in the email at all.
Basically I just want to show the article title in the form result, but with no success until now...
Could someone please help me with this?