Keyword

K2 Item in DTG and Title CAT Listing

More
8 years 2 months ago - 8 years 2 months ago #156088 by Scott
I may have found a bug in 2.7

the it category_item.php

Listing items from a category works fine example menu button link to K2 categories

the problem I am having is I do not want the creation date and time shown, but if I hide the creation date and time the title is hidden as well even though the item title is set to SHOW.

Looking at the code from the "category_item.php" to me it looks like the item title is nested inside the catItemImageBlock so hiding the creation date would hide the item title and it does.

if I hide the item title and leave the creation date and time as SHOW the item title is hidden (as expected) while the date and time as still visible.

Would this be a K2 issue or a template issues (template from JoomlaShine) ?

<div class="catItemImageBlock">
<?php if($this->item->params->get('catItemDateCreated')): ?>
<!-- Date created -->
<div class="createdate">
<?php $date = printf('<span class="createdate-name">'.JHtml::_('date', $this->item->created, JText::_('D')).'</span>'.'<span class="createdate-month">'.JHtml::_('date', $this->item->created, JText::_('M')).'</span>'.'<span class="createdate-day">'.JHtml::_('date', $this->item->created, JText::_('d')).'</span>'); ?>
</div>
<?php endif; ?>
<div class="catItemHeader">
<?php if($this->item->params->get('catItemTitle')): ?>
<!-- Item title -->
<h3 class="catItemTitle">
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="catItemEditLink"> <a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>"> <?php echo JText::_('K2_EDIT_ITEM'); ?> </a> </span>
<?php endif; ?>
<?php if ($this->item->params->get('catItemTitleLinked')): ?>
<a href="<?php echo $this->item->link; ?>"> <?php echo $this->item->title; ?> </a>
<?php else: ?>
<?php echo $this->item->title; ?>
<?php endif; ?>
<?php if($this->item->params->get('catItemFeaturedNotice') && $this->item->featured): ?>
<!-- Featured flag -->
<span> <sup> <?php echo JText::_('K2_FEATURED'); ?> </sup> </span>
<?php endif; ?>
</h3>
<?php endif; ?>

Design Starts with a Blank Sheet
Last edit: 8 years 2 months ago by Scott.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156117 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Item in DTG and Title CAT Listing
Hello,
<?php if($this->item->params->get('catItemDateCreated')): ?>
<!-- Date created -->
<div class="createdate">
<?php $date = printf('<span class="createdate-name">'.JHtml::_('date', $this->item->created, JText::_('D')).'</span>'.'<span class="createdate-month">'.JHtml::_('date', $this->item->created, JText::_('M')).'</span>'.'<span class="createdate-day">'.JHtml::_('date', $this->item->created, JText::_('d')).'</span>'); ?>
</div>
<?php endif; ?>

The check for the date seems to be correct.
Have you tried browsing the view with the default template?
Is it possible to have a link to your site? (I will need the ?template query string enabled)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #156119 by Scott
Replied by Scott on topic K2 Item in DTG and Title CAT Listing
Good call to check if the issue is one Joomla Default template. I did enable Protostar and the items view in Category mode works as it should

hide DTG and the title remains, it is clearly a JoomlaShine template issue. The template "DONA" pro does have an K2 extension specific css for the K2

I do have custom CSS from JSN support which corrects the problem and they will address the issue in the next update to the template hopefully they will follow up on that.

Thank you for the response it is appreciated.

scott

Design Starts with a Blank Sheet

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156130 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Item in DTG and Title CAT Listing
Thank you letting me know Scott :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum