K2 item archive wrong date
Responsive community-minded music Joomla template with JomSocial extension support.
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Fri Nov 28, 2014 6:56 pm
- Reply with quote
- Report this post
Oscar, any idea on this?
The dates appear correct on my news page...
http://tompetty.rocks/news
I created an archive, using the k2 tools module and I don't see any date setting, but it seems to only show today's date in the archive...
http://tompetty.rocks/news/itemlist/dat ... 11?catid=8
Any idea on how to make "date created" appear in the archive?
Thanks!
The dates appear correct on my news page...
http://tompetty.rocks/news
I created an archive, using the k2 tools module and I don't see any date setting, but it seems to only show today's date in the archive...
http://tompetty.rocks/news/itemlist/dat ... 11?catid=8
Any idea on how to make "date created" appear in the archive?
Thanks!
-
- Gold Boarder
- teitbite
- Mon Dec 01, 2014 10:32 am
- Reply with quote
- Report this post
Hi
I'm just checking the dates and they are different than today's date. Can You please give me some more detaild about what You have in mind ?
I'm just checking the dates and they are different than today's date. Can You please give me some more detaild about what You have in mind ?
-
- Moderator
- GK User
- Sat Dec 06, 2014 7:36 pm
- Reply with quote
- Report this post
Hey Teitbite,
When I go to my main News page...
http://tompetty.rocks/news
And then click on any of the months in News Archives (on right sidebar)
The dates come up as today's dates.
I'd like them to be the date the article was created like on the actual news page.
Thanks!
When I go to my main News page...
http://tompetty.rocks/news
And then click on any of the months in News Archives (on right sidebar)
The dates come up as today's dates.
I'd like them to be the date the article was created like on the actual news page.
Thanks!
-
- Gold Boarder
- teitbite
- Mon Dec 08, 2014 4:44 pm
- Reply with quote
- Report this post
Hi
In file /html/com_k2/templates/generic.php in line 53 I've replaced:
with
In file /html/com_k2/templates/generic.php in line 53 I've replaced:
- Code: Select all
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->created, JText::_('j')); ?><span><?php echo JHTML::_('date', $this->item->created, JText::_('M')); ?></span></time>
with
- Code: Select all
<time datetime="<?php echo JHtml::_('date', $item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $item->created, JText::_('j')); ?><span><?php echo JHTML::_('date', $item->created, JText::_('M')); ?></span></time>
-
- Moderator
- GK User
- Mon Dec 08, 2014 8:56 pm
- Reply with quote
- Report this post
You rock Teitbite! Thanks man.
-
- Gold Boarder
5 posts
• Page 1 of 1