grav-plugin-taxonomylist icon indicating copy to clipboard operation
grav-plugin-taxonomylist copied to clipboard

Use taxonomy-list with Gantry framework?

Open oscon opened this issue 6 years ago • 2 comments

Is there a way to use the plugin with the Gantry framework? Using the Custom HTML particle and activate "Process Twig" does not work...

oscon avatar Feb 15 '19 16:02 oscon

Found a solution: Hibbitts Design has already realized a GANTRY particle https://github.com/hibbitts-design

oscon avatar Feb 19 '19 14:02 oscon

Hello, in my case works perfectly, I just add a Custom HTML particle with the Process Twig enabled and the following code:

{% if config.plugins.taxonomylist.enabled %}
<h3 class="g-title">Popular Tags</h3>
{% include 'partials/taxonomylist.html.twig' with {base_url: list_url, taxonomy: 'tag'} %}
{% endif %}

Keep in mind that the README.md file uses different variable for the base url. The example uses base_url: my_url but the code actually uses base_url: list_url. Check https://github.com/getgrav/grav-plugin-taxonomylist/blob/develop/taxonomylist.php#L70.

othercodes avatar May 03 '24 03:05 othercodes