Thank you! Just did it and works fine, here is how I coded in case someone else needs it:
<joomla_directory>\modules\mod_aridatatables\includes\kernel\DataTables\Models\class.DataTablesDataSqlModel.php
inside the function prepareQuery($query)
Code: |
// Get Article Title
$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');
if ($option=="com_content" && $view=="article") {
$ids = explode(':',JRequest::getString('id'));
$article_id = $ids[0];
$article =& JTable::getInstance("content");
$article->load($article_id);
}
// End
$params = array(
'UserId' => $user->get('id'),
'UserGroupId' => $user->get('gid'),
'UserType' => $db->Quote($user->get('usertype')),
'UserName' => $db->Quote($user->get('name')),
'UserLogin' => $db->Quote($user->get('username')),
'UserBlock' => $user->get('block'),
'ArticleTitle' => $article->get("title") // Param Added
);
|