in componentscom_weblinksmodelsweblink.php find the function
[php]
function _loadData()
{
// Lets load the content if it doesn’t already exist
if (empty($this->_data))
{
$query = ‘SELECT w.*, cc.title AS category,’ .
‘ cc.published AS cat_pub, cc.access AS cat_access’.
‘ FROM #__weblinks AS w’ .
‘ LEFT JOIN #__categories AS cc ON cc.id = w.catid’ .
‘ WHERE w.id = ‘. (int) $this->_id;
$this->_db->setQuery($query);
$this->_data = $this->_db->loadObject();
return (boolean) $this->_data;
}
return true;
}
[/php]
try to add ORDER BY w.date DESC (more info)
so it’ll be
[php]
…
‘ WHERE w.id = ‘. (int) $this->_id .
‘ ORDER BY w.date DESC’;
…
[/php]
To add date into display layout you have to hack componentscom_weblinksviewscategorytmpldefault_items.php a little bit.