Intead of:
I need "Sábado 6 de Agosto del 2011 a las 13:17"
How can I edit that.
Thanks
Konrad M wrote:Hi,
where you want to change it. In joomla article or k2 ? Or both ?
<?php echo JHTML::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2')); ?>
JHTML::_('date',$this->item->publish_up, JText::_('l,w F Y')).' a las '.JHTML::_('date',$this->item->publish_up, JText::_('H:i'));
Konrad M wrote:To change it in joomla article , you have to edit html/com_content/article/default.php . Here you have 3 type of date, creation, publish and modification. This is sample for published date. Find this:
- Code: Select all
<?php echo JHTML::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2')); ?>
and change to this:
- Code: Select all
JHTML::_('date',$this->item->publish_up, JText::_('l,w F Y')).' a las '.JHTML::_('date',$this->item->publish_up, JText::_('H:i'));
To change this in category view you need to edit html/com_content/category/blog_item.php
Files for k2 you will find in html/com_k2/templates/default/ Here you need to edit category_item.php, latest_item.php, item.php and if you would like to change it in tag view or user view you need edit tag.php nad user.php too.
<?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?>
JHTML::_('date',$this->item->created, JText::_('l w F Y')).' a las '.JHTML::_('date',$this->item->publish_up, JText::_('H:i'));
Konrad M wrote:I n this files I mentioned you have to find same code, for example in item.php
- Code: Select all
<?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?>
and change it to this one:
- Code: Select all
JHTML::_('date',$this->item->created, JText::_('l w F Y')).' a las '.JHTML::_('date',$this->item->publish_up, JText::_('H:i'));
Konrad M wrote:I n this files I mentioned you have to find same code, for example in item.php
- Code: Select all
<?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?>
and change it to this one:
- Code: Select all
JHTML::_('date',$this->item->created, JText::_('l w F Y')).' a las '.JHTML::_('date',$this->item->publish_up, JText::_('H:i'));
Konrad M wrote:Where it didn't work ? In k2 or joomla ?
Konrad M wrote:Can you send me Private Message with ftp access ? Remember add lin kto this topic too.
Konrad M wrote:I made one example for you. I changed it in templates/gk_twn2/html/com_content/article/default.php
Here you have result http://naciondelaguila.com.mx/index.php ... 55-chinese
Konrad M wrote:No, this is only in joomla article. This is extra customization and we don't support it. I gave you example and inf owhere you need to make changes. Rest you have to do by yourself.
Konrad M wrote:It is same code I gave you in this topic.