Joomla 2.5 – Display creation date in the Articles Latest News Module

The Articles Newsflash (mod_articles_latest) module can be modified to show the creation date of your latest articles.

In the following file there is variable (Array) named $item which handles all information we want to display, like date of creation, Title etc.

/modules/mod_articles_latest/tmpl/default.php

To display the creation date of every items you have to add this line of code to display creation date (format: dd/mm/yyyy).

Before

.....
<li>
<a href="<?php echo $item->link; ?>">
<?php echo $item->title; ?> /a>
</li>
.....

After

.....
<li>
<a href="<?php echo $item->link; ?>">
<?php echo $item->title; ?> - <?php echo substr($item->created,8,2)."/".substr($item->created,5,2)."/".substr($item->created,0,4);?></a>
</li>

Quick and dirty fix but it works !