K2 Category Page Display

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
Thu Nov 06, 2014 4:39 am
Reply with quote
Report this post
Teitbite, got a crazy question for you. On this page...

http://www.tompetty.rocks/index.php/tour-dates

Can I get the date in the black box on the late to just show YEAR?

I just want it that way on this page though.

Thanks!
User avatar
Gold Boarder

teitbite
Sun Nov 09, 2014 11:19 am
Reply with quote
Report this post
Hi

Please edit /html/com_k2/ find line:

Code: Select all
                    <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->created, JText::_('j')); ?><span><?php echo JHTML::_('date', $this->item->created, JText::_('M')); ?></span></time>


and replace with:

Code: Select all
                    <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><span><?php echo JHTML::_('date', $this->item->created, JText::_('Y')); ?></span></time>


if You need it for one category only than You need to create a new K2 template and attach it to this category.
User avatar
Moderator

GK User
Mon Nov 10, 2014 6:49 am
Reply with quote
Report this post
Check it out Obi Wan... I got it to work!!

http://www.tompetty.rocks/tour-dates/1980s

Thanks Teitbite!!!!
User avatar
Gold Boarder

teitbite
Mon Nov 10, 2014 5:46 pm
Reply with quote
Report this post
Hi

Great to hear that :)
User avatar
Moderator


cron