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.

Plugins

Archive plugin: display archived items

Solved by Greet Peirelinck View solution

Started by Greet Peirelinck 7 years ago · 1 replies · 710 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 71 2 months ago