getgrav / grav-plugin-archives

Grav Archives Plugin
https://getgrav.org
MIT License
8 stars 12 forks source link

Does not work. Missing documentation #31

Open X-Ryl669 opened 3 years ago

X-Ryl669 commented 3 years ago

I have a multilanguage blog. The hierachy like this:

/3d-printers type:blog
    page1 fr type:item
    page2 fr type:item

/software blog
    page1 fr type:item
    page2 fr type:item

I've tried both Archive Plus and Archive. Archive Plus displays the items in the blog but Archive does not. Please notice that all item have a category of blog The configuration for the Archive plugin is:

enabled: true
built_in_css: true
date_display_format: 'F Y'
show_count: true
limit: 12
taxonomy_names:
  month: archives_month
  year: archives_year
order:
  by: date
  dir: desc
filters:
  category: blog
filter_combinator: and

I do see an "Archive" title in the sidebar but without any page listing. With Archive Plus, I get a list of items plus the month. If I click on a month, it's redirecting to https://mysite.com/fr/archive:déc_2020 (or https://mysite.com/en/archive:dec_2020) This is nothing to answer for this page, so the "Home" page is returned.

Please notice that I have SimpleSearch plugin and it's working fine to display posts related to the searched item, so the url parsing is working.

I don't know how to:

  1. Get Archive to list my posts (I've also added a page route but I don't understand what to put in there nor what it means).
  2. Get Archive to answer an logical url like https://mysite.com/en/software/archives_month:dec_2020 (if I enter this URL manually it's working, so there is something wrong in between).