Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Archives – Plugin "Archives Plus"

Started by Muut Archive 9 years ago · 7 replies · 1292 views
9 years ago

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.):

YAML

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
9 years ago

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

TXT


and they will appear automatically.

Kind regards,
Sommerregen
9 years ago

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!

9 years ago

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

9 years ago

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

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

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

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

9 years ago

Great to hear :-) 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

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2900 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago