By bizzarro on Tuesday, 24 May 2016
Replies 3
Likes 0
Views 2.6K
Votes 0

PHP Version : 5.6.20
MySQL Version : 5.5.5-10.0.20-MariaDB-cll-lve
Server Information : Linux s174.webhostingserver.nl 2.6.32-673.8.1.lve1.4.3.el6.x86_64 #1 SMP Wed Feb 10 08:57:30 EST 2016 x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Joomla : 3.5.1
component_com_jevents : 3.4.12
component_com_jce : 2.5.16
component_com_acymailing : 5.2.0
module_mod_acymailing : 3.7.0
module_mod_jevents_cal : 3.4.12
module_mod_jevents_custom : 3.4.12
module_mod_jevents_filter : 3.4.12
module_mod_jevents_latest : 3.4.12
module_mod_jevents_legend : 3.4.12
module_mod_jevents_switchview : 3.4.12
plugin_acymailing_calltoaction : 1.1.2
plugin_acymailing_contentplugin : 3.7.0 (not enabled)
plugin_acymailing_geolocation : 5.2.0
plugin_acymailing_managetext : 1.0.0
plugin_acymailing_online : 3.7.0
plugin_acymailing_plginboxactions : 5.2.0
plugin_acymailing_share : 1.0.0
plugin_acymailing_stats : 3.7.0
plugin_acymailing_tablecontents : 1.0.0
plugin_acymailing_tagcbuser : 3.7.1 (not enabled)
plugin_acymailing_tagcontent : 3.7.0
plugin_acymailing_tagjevents_j30 : 2.3.2 (not enabled)
plugin_acymailing_tagmodule : 5.2.0
plugin_acymailing_tagsubscriber : 5.2.0
plugin_acymailing_tagsubscription : 5.2.0
plugin_acymailing_tagtime : 5.2.0
plugin_acymailing_taguser : 5.2.0
plugin_acymailing_template : 5.2.0
plugin_acymailing_urltracker : 5.2.0
plugin_content_jevents : 3.4.12
plugin_editors_acyeditor : 5.2.0
plugin_finder_jevents : 3.4.12 (not enabled)
plugin_search_eventsearch : 3.4.12
plugin_system_acymailingclassmail : 5.2.0 (not enabled)
plugin_system_acymailingurltracker : 5.2.0
plugin_system_gwejson : 3.4.12


Hi,
I'm trying to create a layout in which there are three seperate blocks (modules) next to each other showing the upcoming events (using latest events).

I've got the modules working, however, they are (obviously) all showing the nearest upcoming event, while I would like the second module to display the "second nearest upcoming event" and the third module the "third nearest upcoming event".

So it would display something like this (all seperate modules):

Event 1 || Event 2 || Event 3
May 30 || June 2 || June 8

Is there a way to offset the event displayed to "nearest plus 1" per individual module?

Many thanks!
Hello,

You can do it by days if you like? So using the time limit plugin you can constrain date filter by date or days relative.

Or you could name each module 1 2 3, then use CSS to hide the 2nd and 3rd row. The 2nd module, hide the first and last. Then the 3rd module hide the first and second.

Many thanks
Tony
·
Tuesday, 24 May 2016 23:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for that second suggestion!

I've used the module class suffix as you suggested (firstevent, secondevent, thirdevent) and then added the following custom css to each module:

Module 1
.fistevent table tr:nth-child(2) {display : none;}
.fistevent table tr:nth-child(3) {display : none;}

Module 2
.secondevent table tr:nth-child(1) {display : none;}
.secondevent table tr:nth-child(3) {display : none;}

Module 3:
.thirdevent table tr:nth-child(1) {display : none;}
.thirdevent table tr:nth-child(2) {display : none;}

Worked like a charm!
Thanks again!
·
Wednesday, 25 May 2016 07:19
·
0 Likes
·
0 Votes
·
0 Comments
·
:-) You are very welcome Bizzarro! Glad to have helped.

Many thanks
Tony
·
Wednesday, 25 May 2016 20:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post