Black and White template and date format issue

GK User
Sat Jul 23, 2011 1:34 pm
Hi all, quick question here.

On the CATEGORY blog layout you will see a short date format on each article: http://demo.gavick.com/joomla15/oct2010 ... &Itemid=50

However on the SECTION Blog layout you will see a long date format:http://demo.gavick.com/joomla15/oct2010/index.php?option=com_content&view=section&layout=blog&id=1&Itemid=94

I would like the section blog layout DATE to be the same as the category blog layout date format. I like the category blog date so how do I change it in section.

The examples I am giving are all on your demo site aswell as I am showing here. Look forward to a fix for this. Thanks in advance
User avatar
Gold Boarder

GK User
Sat Jul 23, 2011 11:19 pm
It might just be me, but i don't see any difference in the date format within the B&W site. Also, the date you mention is the date of the template release and would not appear within a real site url anyway.

Chris
www.cmykreative.com
User avatar
Expert Boarder

GK User
Sun Jul 24, 2011 6:03 am
I think you are missing what I am saying.

Please look here at the Blog Category layout: http://demo.gavick.com/joomla15/oct2010 ... &Itemid=50

You will see this format: 12 Aug, 2008

Then please look at the section category layout: http://demo.gavick.com/joomla15/oct2010 ... &Itemid=94

You will see this format: Tuesday, 12 August 2008 10:00

They are different as you can see. I am not mentioning the release date of the template at all. I am talking about the date on each article pages in a category blog layout or a section blog layout. They do not have the same format - I would like them to be the same format as I am using a category blog layout and a section blog layout. Hope this makes sense now.
User avatar
Gold Boarder

GK User
Sun Jul 24, 2011 6:31 am
My mistake. I think if you look in the code for both section and blog you'll see the differences:

template/com_content/section/blog_item.php (around line 145):

<span class="createdate">
<?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?>
</span>

template/com_content/category/blog_item.php (around line 55):

<span class="createdate">
<?php echo date("j M, Y", $article_time); ?>
</span>

Change one or the other to match so they are the same, use whichever format in both that works best for you.

Chris
www.cmykreative.com
User avatar
Expert Boarder

GK User
Sun Jul 24, 2011 7:16 am
No problem, its kind of a picky one to see :) but thanks for pointing me in the right direction - il check this out and revert back. Thanks
User avatar
Gold Boarder


cron