CMS Joomla Mastering Development

Altering the SQL custom field

If I hardwire an sql custom field, the query works as it should (for this specific userid, 305): SELECT id AS value, title AS text FROM #__content where catid = 8 and created_by = 305 What I want to do is allow the created_by clause to be dynamic : Substituted with JFactory::getUser()->id; I figured if […]