Archives – Plugin "Archives Plus"

Unfortunately, i cannot get the Archive Plus Plugin to show the archived blogposts.

  • I can see the “Show more” button, but after the page reloads, nothing else happens.
  • i added a date in the year 2013 and the category blog to several blog posts
  • limit:
    year: 0
    month: 0
    items: 0

My page setup (i also pages for testing @self.children’, but my blog posts are located in subfolder /blog/2017 etc.):

title: Blog
content:
    items:
    - '@self.children'
    - '@page.descendants': /blog/2017
    - '@page.descendants': /blog/2018
    limit: 5
    order:
        by: date
        dir: desc
    pagination: true 
    url_taxonomy_filters: true
---  

Any ideas what i can do?

Greetings,

Smash

Dear Smash,

neither the Archives plugin nor the Archive Plus plugin support archives based on collections, but that’s a very good idea. If you don’t mind, you can open an issue on https://github.com/Sommerregen/grav-plugin-archive-plus/issues . Actually, the way it works is the following. They check taxonomies. Just tag your markdown files with

—yaml
taxonomy:
category: blog


and they will appear automatically.

Kind regards,
Sommerregen

My pages are all tagged with the category “blog”. It worked perfectly on another site i made. This time it doesn’t … I’ll investigate a ittle more!

I tried with a completely fresh install and still can’t get any blog entries to appear. Very strange… Fiddling around a lil more…

Archives plugin works just fine. -> then i turn it off and turn on archives plus -> no entries

  • Once i set any of the limits to zero, nothing appear in the Sidebar’s Archive section!*

Problem solved by not setting the limits to zero. Also… This works perfectly fine (only when I edit the .md file itself):

title: Blog
child_type: item
content:
    items:
        -
          '@page.descendants': /blog/2016
        -
          '@page.descendants': /blog/2017
        -
          '@page.descendants': /blog/2018
    limit: 5
    order:
        by: date
        dir: desc
    pagination: true
    url_taxonomy_filters: true

Thank you for your input, Sommerregen. I can’t imagine the advantage of archives based on collections, though, because I’m not that deep into how grav functions on a deeper level yet… >.<.

Great to hear :slight_smile: I will keep your suggestion with the collections in mind and also how to improve the limit: 0 issue you had.

All the best,
Sommerregen