Latestnews + - Date Order
- Posted by martini (8) Offline
Hello
I'm using the "Latestnews +" extesion and I'm very happy with it.
Is there way to change the date order, so the Article text will show first and later the date?
(Check attachment picture)
2 weeks 2 hours ago - 2 weeks 2 hours ago #1
by martini
I'm using the "Latestnews +" extesion and I'm very happy with it.
Is there way to change the date order, so the Article text will show first and later the date?
(Check attachment picture)
Last edit: 2 weeks 2 hours ago by martini.
The topic has been marked as resolved.
- Posted by TemplatePlazza (5310) Offline
Hi, you can do that by modifying the module's template code via a template override. (If you don't know how to create a template override, please follow this video:
Around line 67, you will see this code:**
change that to :
1 week 6 days ago - 1 week 6 days ago #2
by TemplatePlazza
Around line 67, you will see this code:**
<li class="lnpd_item_without_intro" itemscope itemtype="https://schema.org/Article">
<span class="lnpd_item_date">
<?php
//s how date
LatestNewsPlusDateHelper::getDate($show_date, $show_date_type, $item->created, $custom_date_format);
?>
</span>
<a href="<?php echo $item->link; ?>" itemprop="url" class="lnpd_item_title"><span itemprop="name"><?php echo $item->title; ?></span></a>
</li>
change that to :
<li class="lnpd_item_without_intro" itemscope itemtype="https://schema.org/Article">
<a href="<?php echo $item->link; ?>" itemprop="url" class="lnpd_item_title"><span itemprop="name"><?php echo $item->title; ?></span></a>
<span class="lnpd_item_date">
<?php
//s how date
LatestNewsPlusDateHelper::getDate($show_date, $show_date_type, $item->created, $custom_date_format);
?>
</span>
</li>
Last edit: 1 week 6 days ago by TemplatePlazza.
The topic has been marked as resolved.
- Posted by martini (8) Offline
Thanks for the feedback.
I have a question about the video, about template overriding
This one goes to a template to override "mod_minifrontpage". I'm usign Joomla 5 and the "Cassiopeia" template. Which mod file should I select to override?
And after that which .PHP file should I modify?
Regards
1 week 5 days ago - 1 week 5 days ago #3
by martini
I have a question about the video, about template overriding
This one goes to a template to override "mod_minifrontpage". I'm usign Joomla 5 and the "Cassiopeia" template. Which mod file should I select to override?
And after that which .PHP file should I modify?
Regards
Last edit: 1 week 5 days ago by martini.
The topic has been marked as resolved.
- Posted by martini (8) Offline
The topic has been marked as resolved.