help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED] JEM Banner: A short textual representation of a month

[SOLVED] JEM Banner: A short textual representation of a month

7 years 10 months ago
#23066
Hi,
The JEM Banner module is showing a full textual representation of a month, such as January or March. I need a short textual representation of a month, three letters (Jan through Dec).

I've tried modifying default.php in /modules/mod_jem_banner/tmpl/ but without result?
Code:
<?php echo $item->startdate['month']; ?>

Regards

Please Log in or Create an account to join the conversation.

Re: [SOLVED] JEM Banner: A short textual representation of a month

7 years 10 months ago
#23068
Hi genesisfan

there is a field "Date format" in the JEM Banner module where you can choose the formatting of the dates.

Please Log in or Create an account to join the conversation.

Re: [SOLVED] JEM Banner: A short textual representation of a month

7 years 10 months ago
#23069
Good point Hekla!
BUT whatever I used in the field "Date Format", like "d M Y" or "d m y" or "D M Y" with and without quotes, the format of the dates stay the same. And is always: full month, weekday, day.

regards

Please Log in or Create an account to join the conversation.

Re: [SOLVED] JEM Banner: A short textual representation of a month

7 years 10 months ago
#23070
I use
j. M. Y
and it works best!

Please Log in or Create an account to join the conversation.

Re: [SOLVED] JEM Banner: A short textual representation of a month

7 years 10 months ago
#23074
The Date Format works for me ONLY when I've 'Show Calendar' to No. When 'Show Calendar' is 'Yes' the Date Format doesn't matter and stay default. I don't know if it's a bug or by design or due to I have modified /modules/mod_jem_banner/tmpl/default.php because I need another JEM Module banner output, like Ohanah Lists of Events.

As a workaround I have changed /modules/mod_jem_banner/helper.php line 244 'F' to 'M' :
Code:
static $formats = array('year' => 'Y', 'month' => 'M', 'day' => 'j', 'weekday' => 'l');

Regards

Please Log in or Create an account to join the conversation.

Re: [SOLVED] JEM Banner: A short textual representation of a month

7 years 10 months ago
#23079
Thanks for this!
But be next time more clear in what you want, best with screens!

Please Log in or Create an account to join the conversation.

Time to create page: 0.454 seconds