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

TaxonomyList throwing error during template rendering

Started by Muut Archive 9 years ago · 1 replies · 500 views
9 years ago

I've installed the TaxonomyList plugin and copied the
taxonomylist.html.twig file into my theme's partials/taxonomylist.html.twig.

The taxomony on blog posts is defined as:

YAML
taxonomy:
    category:
        - Health
    author:
        - 'Elaine Rush'

The problem is that when I run the site in the browser, the error

TXT
An exception has been thrown during the rendering of a template ("Illegal offset type in isset or empty").

is thrown.

It singles out the line {% for tax,value in taxlist[taxonomy] %} as being the problem.

Am I doing something wrong?

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