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 8 years ago · 1 replies · 846 views
8 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 Vladimir Novak, 2 weeks ago
3 292 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago