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
- genesisfan
- Topic Author
- Offline
- New Member
- Posts: 6
- Thanks: 1
[SOLVED] JEM Banner: A short textual representation of a month
8 years 1 week ago
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?
Regards
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
8 years 1 week ago
Hi genesisfan
there is a field "Date format" in the JEM Banner module where you can choose the formatting of the dates.
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.
- genesisfan
- Topic Author
- Offline
- New Member
- Posts: 6
- Thanks: 1
Re: [SOLVED] JEM Banner: A short textual representation of a month
8 years 1 week ago
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
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
8 years 1 week ago
I use
j. M. Y
and it works best!
j. M. Y
and it works best!
Please Log in or Create an account to join the conversation.
- genesisfan
- Topic Author
- Offline
- New Member
- Posts: 6
- Thanks: 1
Re: [SOLVED] JEM Banner: A short textual representation of a month
8 years 1 week ago
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' :
Regards
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
8 years 6 days ago
Thanks for this!
But be next time more clear in what you want, best with screens!
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.434 seconds