-
AuthorPosts
-
obliat Friend
obliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
April 4, 2011 at 7:25 pm #162368I’d like to display created date under lead news story title of JA news_fp (only lead news story).
Please see screenshot – created date in red (new row – not right after the title)Also how do I add comments count next to created date?
Thanks
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 6, 2011 at 8:44 am #385113You open the file: modulesmod_janews_fptmpldefaultblog.php
and find:
[PHP]
<?php echo $bigmaxchar > strlen($news->bigintrotext)?$news->introtext:$news->bigintrotext?>
[/PHP]replace by:
[PHP]
<p><?php echo JHTML::_(‘date’,$news->created, JText::_(‘DATE_FORMAT_LC2’));?></p>
<?php echo $bigmaxchar > strlen($news->bigintrotext)?$news->introtext:$news->bigintrotext?>
[/PHP]1 user says Thank You to Saguaros for this useful post
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
April 7, 2011 at 7:21 pm #385312I already placed
<div><?php echo date("d.m.Y", strtotime($news->created)) ?></div>
and it worked for me, but decided to try yours and it didn’t work at first, but once i changed <p> to <div> it made it.So works both ways, but I’ll keep your code 🙂
I’ll appreciate if you can provide code for putting author name and comments count (possibly even from JA Comments Component, not the standard comments count) so I can put it next to created date.
Thanks
AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)This topic contains 3 replies, has 2 voices, and was last updated by obliat 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How can I display created date to JA News FP lead news story title?
Viewing 3 posts - 1 through 3 (of 3 total)