Comments (10)
I'm removing this uncoded feature from the plugin. The calendar shows past events already. The events page does not. It supports the pagination plugin already. I may revisit this in the future.
from grav-plugin-events.
Have you tried enabling "Show past events" in the plugin config?
You can edit this setting from the admin panel, or from grav-plugin-events/events.yaml
from grav-plugin-events.
Yes, it is enabled.
from grav-plugin-events.
What if you try to order by event start instead of date?
content:
items: '@page.descendants': /events
order: header.event.start
from grav-plugin-events.
It lists events, but then, how to sort them by date and in ascending or descending order? I tried to put another content: items: '@page.descendants': /events order: header.event.start order: by: date dir: asc
but if I change to desc it lists in the same order.
Sorry for my troubles, I feel that I miss some tutorial part :)
from grav-plugin-events.
Did you order by date or by header.event.start?
If your header contained content: items: '@page.descendants': /events order: header.event.start order: by: date dir: asc
, i.e. two order variables, I guess Grav would default to the first one it reads when parsing the page header, therefore ignoring the dir variable that goes with your second 'order'.
Try this, maybe?
content:
items: '@page.descendants': /events
order:
by: header.event.start
dir: desc
from grav-plugin-events.
Great, but I have other issues now :)
I get this strange order: May 6, 2016; June 29, 2016; July 25, 2016; July 25, 2016 (the same event doubled); August 25, 2015; March 9, 2014; March 7, 2014; June 5, 2016
from grav-plugin-events.
@aumiras I think there is a doubling event that I haven't been able to pin down. Please check out https://github.com/kalebheitzman/grav-brandr-pages for proper configuration of events and see if that helps any. I'll continue trying to track down sorting and doubling issues. Thanks!
from grav-plugin-events.
I can reproduce the issue on my setup.
I tried messing around a bit and here's what I got:
Using '@page.descendants': /concerts
as item collection (instead of taxonomy type event). The Norwich event was the only one without an end date, and it is the only one not displayed twice. Although it appears to have an end date on the calendar.
The skeleton I used and how I fixed it.
Is this of any help @aumiras ?
EDIT: But I've stumbled upon the original problem. Even when enabling "Displaying past events" in the admin interface, I'm only getting upcoming events. See here.
from grav-plugin-events.
I'll explore this some more. There's certainly a lot of work to be done on this plugin. Calendars and dates are complex.
from grav-plugin-events.
Related Issues (20)
- Issues with internationalizaion HOT 2
- Invalid argument supplied for foreach() HOT 6
- iCal Support HOT 2
- "Invalid argument supplied for foreach()" HOT 2
- How to contribute translation for this plugin? HOT 7
- Event on last day of each month. HOT 1
- Extending events add the new event type to @taxonomy.type ? HOT 1
- Missing Events HOT 4
- Add `calendar` tag HOT 1
- Event plugin pages html is not valid
- Event plug-in partially broken after GRAV update HOT 11
- css looks broken HOT 2
- Event on several day : link to event on starting day is fine but other return 404. HOT 1
- Events not showing on calendar
- Broken with New Grav Release HOT 1
- virtual pages – 404 page not found HOT 2
- Calendar responsive
- Demo page is down HOT 2
- Coordinates HOT 1
- No end date causes site crash HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-plugin-events.