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

Archive plugin: display archived items

Solved by Greet Peirelinck View solution

Started by Greet Peirelinck 7 years ago · 1 replies · 770 views
7 years ago

I try to implement the archive plugin for news-items. I do get a list with the right items but if I click on the items I don't get any news. What could be wrong? Since the right amount of items is listed/picked up? The link I get is:
XXX/nieuws/archives_month:02_2019
You can visit the page here: http://vzwdeschakelbe.webhosting.be/nieuws
Thanks in advance for anyone looking into it 🙂28|395x255

last edited 03/11/19 by Greet Peirelinck
7 years ago Solution

I came to the following solution. The links had to look like ..../archives_month:feb_2019
I changed in the plugin partial (archives.html.twig)
<a href="{{ base_url }}/{{ config.plugins.archives.taxonomy_names.month }}{{ config.system.param_sep }}{{ month|date('m_Y')|lower|e('url') }}">
to
<a href="{{ base_url }}/{{ config.plugins.archives.taxonomy_names.month }}{{ config.system.param_sep }}{{ month|date('M_Y')|lower|e('url') }}">
It solved my problem :-)

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Slebeig, 5 days ago
1 102 5 days ago
Plugins · by Rene, 4 weeks ago
2 303 4 weeks ago
Plugins · by Xavier, 2 months ago
2 223 1 month ago
Plugins · by Luka Prinčič, 7 years ago
3 1411 2 months ago
Plugins · by Sebastian van de Meer, 2 months ago
1 322 2 months ago