help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Feature requests for JEM 2.0 - initial public release
[SOLVED] Event Offset instead of Time Offset
[SOLVED] Event Offset instead of Time Offset
8 years 1 month ago
Hey,
I would use the jem_teaser_module on my page 3 times.
What I imagine:
Teaser 1: Shows only 1 event, ne first next occuring event.
Teaser 2: Shows also only 1 event, but with an event-offset of 1, so that it shows always the event after the event shown in Teaser 1.
Teaser 3: Shows also only 1 event, but with an event-offset of 2, so that it shows always the event after the event shown in Teaser 2.
Would it be possible?
Eventually you can give me hints what to change, so i can do it myself?
Thank you!
I would use the jem_teaser_module on my page 3 times.
What I imagine:
Teaser 1: Shows only 1 event, ne first next occuring event.
Teaser 2: Shows also only 1 event, but with an event-offset of 1, so that it shows always the event after the event shown in Teaser 1.
Teaser 3: Shows also only 1 event, but with an event-offset of 2, so that it shows always the event after the event shown in Teaser 2.
Would it be possible?
Eventually you can give me hints what to change, so i can do it myself?
Thank you!
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Event Offset instead of Time Offset
8 years 1 month ago
Hi Egnarts,
I don't think this is possible without major changes to the code if the solution should be somewhat flexible (more modules for example).
I don't think this is possible without major changes to the code if the solution should be somewhat flexible (more modules for example).
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Event Offset instead of Time Offset
8 years 4 weeks ago
if you just want the three next events, why not choosing "upcoming events" and "3" in the teaser module …?
Or what ist the reason for dividing the three next events into three module items?
Or what ist the reason for dividing the three next events into three module items?
The following user(s) said Thank You: jojo12
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Event Offset instead of Time Offset
8 years 3 weeks ago - 8 years 3 weeks ago
Just had an other idea, its a hack though:
1)
Create a template override for the teaser module.
2)
In line 24 replace
with
3)
In line 26 replace
with
4)
in line 107-108 replace
with
5) now can can address every event via CSS classes.
The first event has the class "event-count-1", the second "event-count-2" and the third "event-count-3".
Create three JEM teaser modules each with the next three occuring events.
Give each module a separate module class suffix (at the bottom of the module settings), for example teaser1, teaser2 and teaser3
Then use CSS to display/hide the events in the modules. In your case that would be:
have fun
1)
Create a template override for the teaser module.
2)
In line 24 replace
Code:
<?php foreach ($list as $item) : ?>
Code:
<?php $rowcount = 0;
foreach ($list as $item) :
$rowcount++
?>
3)
In line 26 replace
Code:
<h2 class="event-title">
Code:
<div class="event-count-<?php echo $rowcount; ?>">
<h2 class="event-title">
4)
in line 107-108 replace
Code:
</table>
<?php endforeach; ?>
Code:
</table>
</div>
<?php endforeach; ?>
5) now can can address every event via CSS classes.
The first event has the class "event-count-1", the second "event-count-2" and the third "event-count-3".
Create three JEM teaser modules each with the next three occuring events.
Give each module a separate module class suffix (at the bottom of the module settings), for example teaser1, teaser2 and teaser3
Then use CSS to display/hide the events in the modules. In your case that would be:
Code:
/* hide all events by default */
.event-count-1,
.event-count-2,
.event-count-3
{display:none; }
/* display 1st event in 1st module, 2nd event in 2nd module and 3rd event in 3rd module */
.moduletableteaser1 .event-count-1,
.moduletableteaser2 .event-count-2,
.moduletableteaser3 .event-count-3
{ display: block; }
have fun
Last edit: 8 years 3 weeks ago by hekla. Reason: nicer formatting
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Event Offset instead of Time Offset
8 years 3 weeks ago
Yea thanks,
that looks interesting, i will test it.
Thank you!
that looks interesting, i will test it.
Thank you!
Please Log in or Create an account to join the conversation.
Time to create page: 0.629 seconds