K2 Date Displayed

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Mar 10, 2014 2:40 pm
Reply with quote
Report this post
Guys,

On K2 items/category views, I'd like to change the data (shown in the orange box on your template) so it shows full month and also the year.

So, instead of 04 JUL as on template, it would show 04 JULY 2010.

Where do I achieve this change?

Thanx
User avatar
Gold Boarder

GK User
Mon Mar 10, 2014 3:52 pm
Reply with quote
Report this post
Hi,
you have to edit k2 views php files - which had been overridden.

1) templates/gk_bikestore/html\com_k2\templates\default\category_item.php
2) find:
Code: Select all
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>">
<?php echo JHTML::_('date', $this->item->created, JText::_('d M')); ?>
</time>


3) change from ('d M') to ('d F Y')

Check here: http://php.net/manual/en/function.date.php
User avatar
Platinum Boarder

GK User
Wed Mar 12, 2014 10:13 am
Reply with quote
Report this post
Thanks. This worked perfectly :-)
User avatar
Gold Boarder


cron