Hello,
I try to use the field 42 #
I want a list of aticle with author filter
For PrepareForm:
$db = JFactory::getDBO();
$user = JFactory::getUser();
$query = 'SELECT c.created_by, u.name' .
' FROM #__content AS c' .
' LEFT JOIN #__users AS u ON u.id = c.created_by' .
' GROUP BY u.name ORDER BY u.name';
$db->setQuery($query);
$authors = $db->loadObjectList();
$form = JHTML::_('select.genericlist', $authors, 'filter_authorid', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'created_by', 'name', $filter_authorid);
mo problem is the following
how to display the value of this field in the list
For PrepareContent:
$value = ????
Image 1
Thank