CamelcityContent V2.3 for Joomla! not displaying user name

joomla!Published November 28, 2009 at 11:18 am No Comments

I recently installed CamelcityContent (v.2.3) to give authors and editors the option to view their unpublished articles from the frontend. However, the user name doesn’t show up in the user column. I updated the code as follows to display the name of the article author.

in file models/all.php:

change the following lines inĀ  function _buildQuery():

cc.title as categorytitle
FROM #__content AS a

change to

cc.title as categorytitle,
u.name as username
FROM #__content AS a

in file views/all/tmpl/default.php

change

echo “<td>”.$l->created_by_user.”&nbsp;</td>”;

to

echo “<td>”.$l->username.”&nbsp;</td>”;

Tags:

Leave a Reply