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 🙂
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Plugins
Solved by Greet Peirelinck View solution
last edited 03/11/19 by Greet Peirelinck
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 :-)
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 43 | 1 week ago | ||
| 2 | 53 | 4 weeks ago | ||
| 3 | 1179 | 1 month ago | ||
| 1 | 47 | 1 month ago | ||
| 3 | 71 | 2 months ago |