I am trying to populate a form field with the current article title:
i first tried:
//<code>
$doc = JFactory::getDocument();
return $doc->getTitle();
//</code>
that only return the page title and because my article is linked to a menu it doesn't give the full article title
then i tried:
//<code>
$article = JTable::getInstance("content");
return $article->get("title");
//</code>
but this doesn't return any result
not sure if the syntax is correct
Can anyone point me in the right direction? Thanks
--
Kind Regards,
Christian McCabe