I'm trying to achieve the following (without much luck), using Solspace Calendar plugin:
- All events (no calendar specified)
- A defined timeframe (one week)
- Only unique events, that have at least 1 occurrence in that week, so no reoccurrences
- In a random order
- Limited to a specified number
I tried, without satisfying result:
{% set events = craft.calendar.events({
dateRangeStart: now |date('Y-m-d'),
dateRangeEnd: now |date_modify('+7 days') |date('Y-m-d'),
order: 'RAND()',
loadOccurrences: false,
limit: 3,
}) %}
Any Calendar experts out there?