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

Improved archives plugin

Started by Muut Archive 11 years ago · 2 replies · 180 views
11 years ago

Wow you did a lot of work there! My thoughts are that because your modifications take the plugin quite a bit beyond the original concept, it's probably worth having it as a whole new plugin?

I think it should be called "HiearchialArchives" or "ArchivesPlus" or something like that? It's not an issue to do this.

11 years ago

Oh, my intention was not to derive another plugin, since my improvements are based on your code and it completeley behaves as your Archives plugin by setting

YAML
show:
   year: false;
   month: true;

limit:
   year: 0
   month: 0
   items: 0

in archives.yaml. However I plan to it a little bit more i.e. I think of an archives page. In this case it is maybe a good idea to rename mine. ArchivePlus is a good name! :-)

BTW: When modifying content in the onPageContentProcessed method, it is possible to attach a template, such that this content is rendered with the new template? The SimpleSearch plugin is maybe a good start. However I like to modify the content only without changing the layout of the whole site... How can I do that?

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 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago