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

Taxonomylist Plugin - How to invoke?

Started by Muut Archive 11 years ago · 2 replies · 279 views
11 years ago

I read the readme, it's installed. How doy ou invoke it in the page or page template? Doing something like...

TWIG
{% include 'partials/taxonomylist.html.twig' %}

...causes a twigsplosion. The docs say to look at the Blog Site Skeleton, which I did, and I can't seem to find an example where it's invoked. Please help :)

11 years ago

I use it automagically through the blog template in the antimatter theme. It consists among others of this partial: templates/partials/sidebar.html.twig It has this code snippet

TWIG
{% if config.plugins.taxonomylist.enabled %} 
22 <div class="sidebar-content"> 
23     <h4>Popular Tags</h4> 
24     {% include 'partials/taxonomylist.html.twig' with {'taxonomy':'tag'} %} 
25 </div> 

Hope this will get you on the way. I see this with blabla extra compared to your attempt.

11 years ago

Ah.. I see the extra "blah blah" as you say, I think the core of my problem is that little with in the include statement, had no idea to use that. One solid code example should be documented with this (or any) plugin. Thank you, I'm gonna try it right now!

Grav is like a flat-file Christmas!
-Ritchie D'Alto

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago