Tuesday, 14 July 2015
  10 Replies
  1.7K Visits
0
Votes
Undo
Hi!
I'm working now for days on one problem: I'm working with the costum layouts, to get a special format in the list view.
If it is an allday event, only the date should be shown, but no time. If there is a starttime but no endtime, the layout should be for example: 08:00. If there is a starttime and an endtime the layout should be for example: 08:00 - 12:00.

I've tried it with some codes, but it never worked well.
First of all, I tried that one:
{{Title Link:TITLE_LINK}}
{{Startdatum:STARTDATE; %A, %d. %B %Y}}{{Enddatum des mehrtägigen Events:MULTIENDDATE; - %A, %d. %B %Y}}
{{Startzeit:STARTTIME}} - {{Endzeit:ENDTIME}}


This is good, if there is start- and endtime. But if i have an event with only a starttime, I get: "08:00 - ". If I have an allday event, I get: " - ".

Then I tried this code:
{{Title Link:TITLE_LINK}}
{{Startdatum:STARTDATE; %A, %d. %B %Y}}{{Enddatum des mehrtägigen Events:MULTIENDDATE; - %A, %d. %B %Y}}
{{Startzeit:STARTTIME;%H:%M}}{{Endzeit:ENDTIME; - %H:%M}}


Now, if any time is not defined, I get 00:00 or 23:59. For example at an allday event I get the time: 00:00 - 23:59.

I hope you can help me to get the right format.
Thank you everybody for helping and supporting.

Walter

P.S. here is my support information.

PHP Version : 5.6.10
MySQL Version : 5.5.43
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Load JEvents Bootstrap JS? : Yes
Max Input Vars ? : 1000
Club code set? : No
Joomla : 3.4.3
component_com_jevents : 3.2.19
module_mod_jevents_cal : 3.2.19
module_mod_jevents_custom : 3.2.19
module_mod_jevents_filter : 3.2.19
module_mod_jevents_latest : 3.2.19
module_mod_jevents_legend : 3.2.19
module_mod_jevents_switchview : 3.2.19
plugin_content_jevents : 3.2.19
plugin_finder_jevents : 3.2.19 (not enabled)
plugin_search_eventsearch : 3.2.19
Tuesday, 14 July 2015 09:31
·
#152346
0
Votes
Undo
Hello,

Why not use the JEvents Repeat Summary to output the time format and then adjust that as a language override? see:
https://www.jevents.net/frequently-aske ... in-jevents

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 14 July 2015 11:25
·
#152347
0
Votes
Undo
Thank you for your idea, but now I have problems with the language override.
I tell you, want I have done:
I went in the backend to the extensions -> language -> override and created a new override. I think I have to override the key JEV_FIELD_REPEATSUMMARY. Is that correct?
But what do I have to type in the text field now? The format like that way: JEV_FIELD_REPEATSUMMARY="%A, %e. %B %Y" or only the date and time format?

Or am I completly on the wrong way?
And what do I have to choose in the configuration at Date Format? "From Language File"?

Thanks again
Tuesday, 14 July 2015 14:45
·
#152348
0
Votes
Undo
Ok, the formatting worked now. But I have one last problem: Is there a possiblity to get the time in a new line.
Like this:
Sunday, 12. July 2015 - Monday, 13. July 2015
08:00 - 12:00

Thanks
Walter
Tuesday, 14 July 2015 15:52
·
#152349
0
Votes
Undo
Hello,

Try adding a <br /> Before the time.

Thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 14 July 2015 16:05
·
#152350
0
Votes
Undo
I had the same idea, and thats good as long as you have only a starttime. But with endtime you get:
Sunday, 12. July 2015 - Monday, 13. July 2015
08:00 -
12:00
Tuesday, 14 July 2015 16:22
·
#152351
0
Votes
Undo
Ok, so wrap it in a span:

 <span class="je_time"> </span>


Then get the class of the element above it and add:


.element_above_class > span:first-child {
display:inline-block;
clear:left;
}


Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 15 July 2015 08:35
·
#152352
0
Votes
Undo
Hi Tony!
Sorry, I do not exactly understand, what you mean.
The first code I put into the language override of the time format. So here I have now:
<span class="je_time"><br />%H:%M Uhr</span>


But I don't understand, where I have to type in the second code.
Maybe you have a look on my website, it looks like this now:
[url]http://www.tennis-parkbad.at/de/index.php/veranstaltungen/kalender/[/url]

Thanks
Wednesday, 15 July 2015 08:42
·
#152353
0
Votes
Undo
Hello,

ok now remove the <br />

And add:



.ev_td_li > span:first-child {
display:inline-block;
clear:left;
}


To JEvents -> custom CSS

It should work.

Thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 15 July 2015 09:29
·
#152354
0
Votes
Undo
I'm sorry, but now, date and time are in the same line again. I post the screenshots of the costum css and the language override. Have I done anything wrong?

http://www.tennis-parkbad.at/costumcss.jpg

http://www.tennis-parkbad.at/languageoverride.jpg

Is it possible, that the costum css is not used. If I hover the lines with firebug, the costum css is not show anywhere.

Thanks
Wednesday, 15 July 2015 21:49
·
#152355
0
Votes
Undo
Hello

Did you solve it? Your site looks like you have.

This sort of customisation is getting on for Silver Member support.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.