By Guest on Tuesday, 14 July 2015
Replies 10
Likes 0
Views 1.7K
Votes 0
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
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
·
Tuesday, 14 July 2015 09:31
·
0 Likes
·
0 Votes
·
0 Comments
·
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 11:25
·
0 Likes
·
0 Votes
·
0 Comments
·
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 14:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Try adding a <br /> Before the time.

Thanks
Tony
·
Tuesday, 14 July 2015 15:52
·
0 Likes
·
0 Votes
·
0 Comments
·
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:05
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Tuesday, 14 July 2015 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
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:
http://www.tennis-parkbad.at/de/index.php/veranstaltungen/kalender/

Thanks
·
Wednesday, 15 July 2015 08:35
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Wednesday, 15 July 2015 08:42
·
0 Likes
·
0 Votes
·
0 Comments
·
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?





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 09:29
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Wednesday, 15 July 2015 21:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post