1. eumel7
  2. Sherlock Holmes The Voice Notable Answerer
  3. Commercial Templates
  4. Saturday, 22 February 2025
  5.  Subscribe via email
I use the J51 News Module 3.0.12. / J! 5 latest version
You can use the settings in the module to display the date in the FE under the heading, for example.
(I use the J! German translation).
Where does the news module get the date display from? I would like to write out the name of the month and not abbreviate it.
Attachments (1)
Accepted Answer Pending Moderation
0
Votes
Undo
I assume that you need to use a language override. The possible codes for the date format can be found in the PHP documentation.
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Alternatively you can create an override for the module itself. Within the module override amend line 238...

<?php echo HTMLHelper::_('date', $item->displayDate, 'd M Y') ?>


To

<?php echo HTMLHelper::_('date', $item->displayDate, 'd F Y') ?>


Ref: https://www.w3schools.com/php/func_date_date_format.asp

Ciaran
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

...Alternatively you can create an override .....
Ciaran

Thanks for your answers

I created a default.php in: “‎/templates/j51_kodaline/html/mod_j51news/
The file only has 231 lines.
Where exactly does the override have to go?
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!