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.
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.
-
- Gold Boarder
- teitbite
- Thu Feb 27, 2014 10:19 pm
Hi
Please edit file /html/com_k2/default/item.php line 56
and replace with:
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')); ?>
-
- Moderator
- GK User
- Fri Feb 28, 2014 2:21 pm
Thanks for your help! Works well!
-
- Gold Boarder
3 posts
• Page 1 of 1