Created date in K2 category view

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
Tue Feb 19, 2013 11:47 am
Reply with quote
Report this post
Hello,

How to show created date in K2 category view?
http://demo.gavick.com/joomla25/gamenew ... Itemid=425

I tried flowing but no result:
Go to:
    Item view options in category listings
    Item created date and time: "Show"
Thanks
User avatar
Junior Boarder

Konrad M
Wed Feb 20, 2013 1:34 pm
Reply with quote
Report this post
Hi,
please go to html/com_k2/templates/default/category_item.php and find:
Code: Select all
<?php if($this->item->params->get('latestItemDateCreated')): ?>
                  <li class="itemDate">
                     <time datetime="<?php echo JHtml::_('date', $this->item->created, 'Y-m-d'); ?>">
                        <?php echo JHTML::_('date', $this->item->created, JText::_('d M Y')); ?>
                     </time>
                  </li>
                  <?php endif; ?>

and change to:
Code: Select all
<?php if($this->item->params->get('catItemDateCreated')): ?>
                  <li class="itemDate">
                     <time datetime="<?php echo JHtml::_('date', $this->item->created, 'Y-m-d'); ?>">
                        <?php echo JHTML::_('date', $this->item->created, JText::_('d M Y')); ?>
                     </time>
                  </li>
                  <?php endif; ?>
User avatar

GK User
Thu Feb 21, 2013 11:22 am
Reply with quote
Report this post
Done, many thanks :)
User avatar
Junior Boarder


cron