Latestnews + - Date Order

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
Attachments:
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:**
<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>



 
1 week 6 days ago - 1 week 6 days ago #2 by TemplatePlazza
Last edit: 1 week 6 days ago by TemplatePlazza.
The topic has been marked as resolved.
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
Last edit: 1 week 5 days ago by martini.
The topic has been marked as resolved.
I found it.

It worked. Thanks you very much.
1 week 5 days ago #4 by martini
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5310) Offline
Ah, okay. Glad you finally found the solution.
1 week 5 days ago #5 by TemplatePlazza
The topic has been marked as resolved.
Powered by Kunena Forum