Thursday, 12 November 2015
  15 Replies
  1.2K Visits
0
Votes
Undo
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
9 years ago
·
#159916
0
Votes
Undo
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.

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!

9 years ago
·
#159917
0
Votes
Undo
I have a list of events.

There are future and past events.

The next event should appear in bold
9 years ago
·
#159919
0
Votes
Undo
Hello,

What are you classing as the next event?

I.e. the next future event from today?

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!

9 years ago
·
#159920
0
Votes
Undo
Hello,

yes i mean the next future event from today.

greetings
fap
9 years ago
·
#159921
0
Votes
Undo
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).

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!

9 years ago
·
#159922
0
Votes
Undo
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
9 years ago
·
#159923
0
Votes
Undo
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

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!

9 years ago
·
#159924
0
Votes
Undo
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
9 years ago
·
#159925
0
Votes
Undo
Hello Fap,

So is that your problem solved?

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!

9 years ago
·
#159926
0
Votes
Undo
Hello,

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

Greetings

fap
9 years ago
·
#159927
0
Votes
Undo
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

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!

9 years ago
·
#159928
0
Votes
Undo
@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
9 years ago
·
#159929
0
Votes
Undo
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=":o" 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
9 years ago
·
#159930
0
Votes
Undo
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

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.