getgrav / grav-plugin-taxonomylist

Grav TaxonomyList Plugin
https://getgrav.org
MIT License
25 stars 14 forks source link

Links generated by plugin route to the homepage and not the blog #3

Closed bovisp closed 9 years ago

bovisp commented 9 years ago

I am using this plugin with its default twig file and yaml config file.

The issue is that when I click on one of the links that is generated by this plugin, it just routes me back to my homepage. You can see this in action on my Koding VM.

It also seems that tag is hard coded so you can't use another taxonomy such as category or another custom taxonomy.

rhukster commented 9 years ago

Even though you did provide a PR for this with a config option, I think the best solution is to pass the values for taxonomy and base_url when you include the partial. For example:

{% include 'partials/taxonomylist.html.twig' with {'taxonomy':'tag', 'base_url', `/blog`} %}