By Guest on Thursday, 12 November 2015
Replies 15
Likes 0
Views 1.3K
Votes 0
Hy everybody,

I use the module "Latest Events".

With this code i get a list of Events:

<br>[!m:${startDate(%A, der %d. %B %Y)}: {title}][m:${startDate(%A, der %d. %B %Y)} - ${endDate(%A, der %d. %B %Y)}: {title}]</b><br></br><hr>


Is it possible to change the code that the next event is marked bold?

Thank you for your help!

Kindly regards

fap
You mean - you want the first event in the list to appear in bold and the others normal?

If so can you give us a URL and we can advise on the CSS you could use. Making use of CSS first child selectors.
·
Thursday, 12 November 2015 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
I have a list of events.

There are future and past events.

The next event should appear in bold
·
Thursday, 12 November 2015 19:20
·
0 Likes
·
0 Votes
·
0 Comments
·
the url is: spielmannszug-altastenberg.de/2015/termine
·
Thursday, 12 November 2015 19:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

What are you classing as the next event?

I.e. the next future event from today?

Thanks
Tony
·
Thursday, 12 November 2015 20:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

yes i mean the next future event from today.

greetings
fap
·
Thursday, 12 November 2015 21:16
·
0 Likes
·
0 Votes
·
0 Comments
·
IF you only show future events then its easy using CSS but if you have mix of past and future event then it is not trivial I'm afraid and would need a template override (i.e. some custom PHP coding).
·
Friday, 13 November 2015 07:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I solved the problem, but there is a little Problem...

I use 3 "Latest Events Module"

The first module displays all events from the past. The issue is "normal". I have published it on the position "latest_events_module1".
The second module displays 1 upcoming event. The issue is "bold". I have published it on the position "latest_events_module2".
The third module displays all upcoming events. The issue is "normal". I have published it on the position "latest_events_module3".

In my "events-article" i use the code

{loadposition latest_events_module1}
{loadposition latest_events_module2}
{loadposition latest_events_module2}


It works, but is a problem. The next event is shown twice. Even "bold" from the module2, and even "normal" from the module3.

Is it possible to configure module3 so that the next event does not indicate but the events after the next?

greetings
fap
·
Monday, 23 November 2015 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fap,

You said you use:


{loadposition latest_events_module1}
{loadposition latest_events_module2}
{loadposition latest_events_module2}


Shouldn't that be:

{loadposition latest_events_module1}
{loadposition latest_events_module2}
{loadposition latest_events_module3}


Many thanks
Tony
·
Monday, 23 November 2015 21:02
·
0 Likes
·
0 Votes
·
0 Comments
·
I've made a mistake... <!-- s:? --><img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused" /><!-- s:? -->

Of course my code is:


{loadposition latest_events_module1}
{loadposition latest_events_module2}
{loadposition latest_events_module3}


Greetings

fap
·
Monday, 23 November 2015 21:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fap,

So is that your problem solved?

Thanks
Tony
·
Tuesday, 24 November 2015 00:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

The Problem is the next event is shown twice. Even "bold" from the module2, and even "normal" from the module3.

Greetings

fap
·
Tuesday, 24 November 2015 07:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fap,

It's not possible to remove the first event from the query. but you can use CSS to hide the 3rd modules 1st event if you give the module a class, then you can set it to for example:


.mymoduleclass .mod_events_latest_first {
display:none !important;
}


Many thanks
Tony
·
Tuesday, 24 November 2015 09:25
·
0 Likes
·
0 Votes
·
0 Comments
·
@Tonyp: thank you for your answer!

Now i have made 3 "Latest Events Module"

The first is for all past Events.
The second is just for 1 next Event.
The third is für all future Events.

In the field "Custom CSS" of the third Module i have inserted your code:

.mymoduleclass .mod_events_latest_first {
display:none !important;
}


Where have i insert the Module-Suffix?

I have insert in the fourth field:
"mymoduleclass" 
or
" mymoduleclass"
or
".mymoduleclass"
or
" .mymoduleclass"


But nothing worked...

In the page-source the code:
.mymoduleclass .mod_events_latest_first {
display:none !important;
}

is displayed.

So i think the problem is the module-suffix of the third module.

Thank you for your help!

greetings

fap
·
Wednesday, 25 November 2015 00:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

Please take a look at my configuration.

[attachment=0:13fb29kx]<!-- ia0 -->jevents.png<!-- ia0 -->[/attachment:13fb29kx]

The text "hallo" is not displayed in the source code <!-- s:o --><img src="{SMILIES_PATH}/icon_e_surprised.gif" alt="" title="Surprised" /><!-- s:o -->

I know that the suffix "hello" must match the name in the "Custom CSS" but it is just a test.

Why is the text "hallo" not be displayed in the source code?


Greetings

fap
·
Wednesday, 25 November 2015 20:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fap,

If loading the module correctly, it should be shown in the source code. But if you are loading it through a module load plugin it may not be.

With the way the module is setup this CSS should work:


.hallo .mod_events_latest_first {
display:none !important;
}


Many thanks
Tony
·
Wednesday, 25 November 2015 22:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post