published date instead of creation date

December 2010 Joomla Templates
GK User
Wed Feb 26, 2014 4:17 pm
I usually write my posts a little earlier than it will be published.

Therefore I want to show the published date in k2 instead of the creation date.

How can I accomplish that?

Thanks in advance for your help.
User avatar
Gold Boarder

teitbite
Thu Feb 27, 2014 10:19 pm
Hi

Please edit file /html/com_k2/default/item.php line 56

Code: Select all
                <?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>


and replace with:

Code: Select all
                <?php echo JHTML::_('date', $this->item->publish_up , JText::_('K2_DATE_FORMAT_LC2')); ?>

User avatar
Moderator

GK User
Fri Feb 28, 2014 2:21 pm
Thanks for your help! Works well!
User avatar
Gold Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.