-
AuthorPosts
-
December 14, 2015 at 5:39 pm #813055
Hi,
I would like to change the date format, so it says dd-mm-YY – instead of so many months/weeks/days ago .. where can I do that?
thx in advance!
rgds,
isabelSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 15, 2015 at 4:58 am #814009Hi isabel,
May I know the date in which part you’re referring to? some screenshots maybe helpful here.
December 15, 2015 at 8:39 am #814368Hi Saguaros,
sure,.. attached (dates in yellow)… I would like to change those dates to dd-mm-YY..
thx in advance,
regards,
Isabel
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 16, 2015 at 10:00 am #816507Hi Isabel,
Due to the concept of this template, we provide customisation for the DATE display like that. If you want to use default display for date, you can try with this tweak:
-
Go to file: /root/templates/ja_magz/html/mod_articles_latest/focus.php
-
Look for snippet of code that render created date:
<?php if ($params->get('show_create_date')) : ?> <dd class="create"> <span><?php echo MagzHelper::relTime($item->created); ?></span> </dd> <?php endif; ?>
- Then replace this line of code:
<span><?php echo MagzHelper::relTime($item->created); ?></span>
by:
<span><?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?></span>
Hope this helps.
December 16, 2015 at 11:03 am #816612hi Saguaros,
I tried this, but no change to see at the frontend.. (see attached) dit I do something wrong?
rgds, Isabel
p.s. I also want to change the date format for the entire site (publish date, create date) – not only for the latest articles…
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 17, 2015 at 2:59 am #817951You can send me URL, admin and FTP account of your site via your reply and SET IT AS PRIVATE reply (so that only Moderators and Staff can see)
December 17, 2015 at 10:38 am #818381This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 20, 2015 at 1:16 pm #825325Hi Isabel,
I don’t see the change I suggested above on your site, did you even add it?
And if you want to show the publish date instead of created date, you can change above line of code to:
<span><?php echo JLayoutHelper::render('joomla.content.info_block.publish_date', $displayData); ?></span>
I just applied for the Articles Latest module via file: /root/templates/ja_magz/html/mod_articles_latest/focus.php
You can apply the same for other modules displaying on the homepage.
January 15, 2016 at 5:06 pm #848892This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 18, 2016 at 3:34 am #851197Hi
As I mentioned above, in Articles Latest module, you’re setting to show Published Date, not Created Date so you will need to find the line of code for publish date and replace with:
<span><?php echo JLayoutHelper::render('joomla.content.info_block.publish_date', $displayData); ?></span>
I changed in ‘focus.php’ file on your site and you can see it’s showing now.
For other parts on your site, they are different modules but you can apply the same change as this Articles Latest module: just find the line of code for date and replace as above
I hope this makes senses.
January 19, 2016 at 9:05 am #852741This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 21, 2016 at 1:48 am #863716I changed that part for you in previous post, did you change it again?
Btw, I can’t log into backend of your site now.
January 21, 2016 at 8:44 am #864137This reply has been marked as private.guap Friendguap
- Join date:
- March 2008
- Posts:
- 408
- Downloads:
- 16
- Uploads:
- 109
- Thanks:
- 99
- Thanked:
- 8 times in 2 posts
January 25, 2016 at 8:43 am #867543This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
-
AuthorPosts
This topic contains 23 replies, has 4 voices, and was last updated by Gruponea.com 8 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum