Wednesday, 05 July 2017
  4 Replies
  1.1K Visits
0
Votes
Undo
Hi,
On this module I have an event that starts -
From Friday 07 July 2017 - 08:00am
To Sunday 09 July 2017 - 05:00pm

However on the module it is displayed like this -
07 Jul 2017;
08:00AM - 05:00PM
Event
07 Jul 2017;
08:00AM - 05:00PM
Event
07 Jul 2017;
08:00AM - 05:00PM
Event

How can I change it so it is displayed showing the start time and date and the end time and date, something like this -
07 Jul 2017 08:00am - 09 Jul 2017 05.00pm Event
Many thanks in advance
Wednesday, 05 July 2017 20:44
·
#190629
Accepted Answer
0
Votes
Undo

<mod_events_latest_content style="font-size:13pt;">${title}</mod_events_latest_content>
${startDate(%a. %d. %b. %Y)}[!a:, ${startDate(%H:%M)}][m: -<br>${endDate(%a. %d. %b. %Y)}][!e:, ${endDate(%H:%M)}]


Would be smarter to put this in a .css file or custom css of jevents, but this keeps all together for the module ;)
Wednesday, 05 July 2017 16:05
·
#190618
0
Votes
Undo
You can try and modify this code for your needs:

${title}
${startDate(%a. %d. %b. %Y)}[!a:, ${startDate(%H:%M)}][m: -<br>${endDate(%a. %d. %b. %Y)}][!e:, ${endDate(%H:%M)}]

will show as:
---
Event
Mi. 05. Jul. 2017, 19:00 -
Fr. 07. Jul. 2017, 22:00
---

Best regards, Macjoomla
Wednesday, 05 July 2017 19:51
·
#190627
0
Votes
Undo
brilliant thank you!! :D
Now another one, how do I change the title font size. Firebug dosen't seem to give me anything
Thanks and sorry for being annoying
Wednesday, 05 July 2017 20:44
·
#190629
Accepted Answer
0
Votes
Undo

<mod_events_latest_content style="font-size:13pt;">${title}</mod_events_latest_content>
${startDate(%a. %d. %b. %Y)}[!a:, ${startDate(%H:%M)}][m: -<br>${endDate(%a. %d. %b. %Y)}][!e:, ${endDate(%H:%M)}]


Would be smarter to put this in a .css file or custom css of jevents, but this keeps all together for the module ;)
Thursday, 06 July 2017 09:44
·
#190633
0
Votes
Undo
Perfect! thank you very much! :D
  • Page :
  • 1
There are no replies made for this post yet.