Giter Club home page Giter Club logo

Comments (10)

kalebheitzman avatar kalebheitzman commented on August 16, 2024 1

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.

paulcmal avatar paulcmal commented on August 16, 2024

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.

aumiras avatar aumiras commented on August 16, 2024

Yes, it is enabled.

from grav-plugin-events.

paulcmal avatar paulcmal commented on August 16, 2024

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.

aumiras avatar aumiras commented on August 16, 2024

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.

paulcmal avatar paulcmal commented on August 16, 2024

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.

aumiras avatar aumiras commented on August 16, 2024

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.

kalebheitzman avatar kalebheitzman commented on August 16, 2024

@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.

paulcmal avatar paulcmal commented on August 16, 2024

I can reproduce the issue on my setup.

I tried messing around a bit and here's what I got:
Doubling events with an end

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.

kalebheitzman avatar kalebheitzman commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.