Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How do I sort taxonomy in taxonomy list?

Started by Muut Archive 10 years ago · 2 replies · 1197 views
10 years ago

Using the taxonomylist plugin. How would I sort these alphabetically by tag?

TWIG
{% set taxlist = taxonomylist.get() %}

{% if taxlist %}

<span class="tags">
    {% for tax,value in taxlist[taxonomy] %}

        <a class="btn btn-default btn-xs" href="{{ base_url }}/notes/tag{{ config.system.param_sep }},{{ tax|e('url') }}">{{ tax }}</a>

    {% endfor %}
</span>
{% endif %}

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 673 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago