k2 itemDate not displayed in category list

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 Jul 11, 2013 10:42 am
Reply with quote
Report this post
hey guys,

publishing time and date will not be displayed in category list.
- all my settings are correctly, for sure!!

pirate-searching-for-ul_class.png


changing from news template to joomla standard template shows that everything works correctly so the bug can only caused by this template.

please reply - please fix - please help - sending super user admin login via pm
User avatar
Senior Boarder

GK User
Fri Jul 12, 2013 8:56 am
Reply with quote
Report this post
It must be the well known itemdategate afera ;)
Ill report that missing item to devteam, meanwhile to bring it back, please edit:
/tempaltes/gk_news/html/com_k2/templates/default/category_item.php

and replace:
Code: Select all
            <?php if(isset($this->item->editLink)): ?>
            <a class="catItemEditLink modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
               <?php echo JText::_('K2_EDIT_ITEM'); ?>
            </a>
            <?php endif; ?>
      
            <?php if($this->item->params->get('catItemTitle')): ?>
            <h2>

with:
Code: Select all
            <?php if(isset($this->item->editLink)): ?>
            <a class="catItemEditLink modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
               <?php echo JText::_('K2_EDIT_ITEM'); ?>
            </a>
            <?php endif; ?>
            <?php if($this->item->params->get('catItemDateCreated')): ?>
            <!-- Date created -->
            <span class="catItemDateCreated">
               <?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
            </span>
            <?php endif; ?>

            <?php if($this->item->params->get('catItemTitle')): ?>
            <h2>


It should bring the missing item back.
User avatar
Moderator

GK User
Fri Jul 12, 2013 9:48 am
Reply with quote
Report this post
thanks that works but its not the correct position i think.
- want date and time in line with category and author

look at this here: http://www.fan-television.de/news
User avatar
Senior Boarder

GK User
Fri Jul 12, 2013 10:09 am
Reply with quote
Report this post
No problemo ;)

Revert previous change and replace this:
Code: Select all
                  <?php if($this->item->params->get('catItemHits')): ?>
                  <li class="itemHitsBlock"> <span class="itemHits"><?php echo JText::_('K2_READ'); ?>: <?php echo $this->item->hits; ?> <?php echo JText::_('K2_TIMES'); ?></span> </li>
                  <?php endif; ?>
                  <?php if($this->item->params->get('catItemDateModified') && $this->item->created != $this->item->modified): ?>
                  <li class="itemDateModified"> <?php echo JText::_('K2_LAST_MODIFIED_ON'); ?> <?php echo JHTML::_('date', $this->item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?> </li>
                  <?php endif; ?>

with:
Code: Select all
                  <?php if($this->item->params->get('catItemHits')): ?>
                  <li class="itemHitsBlock"> <span class="itemHits"><?php echo JText::_('K2_READ'); ?>: <?php echo $this->item->hits; ?> <?php echo JText::_('K2_TIMES'); ?></span> </li>
                  <?php endif; ?>
                  
                  <?php if($this->item->params->get('catItemDateCreated')): ?>
                     <!-- Date created -->
                     <li class="itemDate">
                        <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>">
                        <?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
                     </time>
                     </li>
                     <?php endif; ?>               
                  
                  <?php if($this->item->params->get('catItemDateModified') && $this->item->created != $this->item->modified): ?>
                  <li class="itemDateModified"> <?php echo JText::_('K2_LAST_MODIFIED_ON'); ?> <?php echo JHTML::_('date', $this->item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?> </li>
                  <?php endif; ?>
                  
User avatar
Moderator

GK User
Fri Jul 12, 2013 11:02 am
Reply with quote
Report this post
nice! cyberek you're brilliant
User avatar
Senior Boarder


cron