Module ID based date

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Sep 23, 2011 11:41 am
Hi.

I'm trying to have a different DATE output from this marvelous module. The file that I'm trying to override is this: modules/mod_news_pro_gk4/tmpl/layout.parts.php. I have put it in the html/mod_news_pro_gk4 folder of my template and it gets read.

The problem is, I don't know how to get the "MODULE ID" variable in it, so that I can conditionally format the output date, based on the module ID.

The line I'm trying to modify is line 134:
Code: Select all
$info_date = JHTML::_('date', $news_date, $config['date_format']);


I would like to have something like this:
Code: Select all
if ($config['module_id'] == 28) {
$info_date = "<span class="month">".JHTML::_('date', $news_date, "Y")."</span>";
} else {
$info_date = JHTML::_('date', $news_date, $config['date_format']);
}


I have already tried $module->id, that used to work in the J1.5, but it doesn't here.

Any ideas? Thank you in advance.
User avatar
Fresh Boarder

cron