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)
10 months 3 weeks ago - 10 months 3 weeks ago #1 by martini
Attachments:
Last edit: 10 months 3 weeks ago by martini.
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5410) 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>



 
10 months 3 weeks ago - 10 months 3 weeks ago #2 by TemplatePlazza
Last edit: 10 months 3 weeks 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
10 months 3 weeks ago - 10 months 3 weeks ago #3 by martini
Last edit: 10 months 3 weeks ago by martini.
The topic has been marked as resolved.
I found it.

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