Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use taxonomy-list with Gantry framework? #26

Open
oscon opened this issue Feb 15, 2019 · 2 comments
Open

Use taxonomy-list with Gantry framework? #26

oscon opened this issue Feb 15, 2019 · 2 comments

Comments

@oscon
Copy link

oscon commented Feb 15, 2019

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
Copy link
Author

oscon commented Feb 19, 2019

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

@othercodes
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants