First, yes, I installed plugin named ‘Taxonomy List’.
I changed the default taxonomies like:
taxonomies:
- profile
- strings
In a folder, I have several pages, where I have something like this:
taxonomy:
strings: ['25', '28', '30']
So, if I’m on these pages’ parent page, where I have the next configuration:
content:
items: @self.children
limit: 5
pagination: true
I include on this page’s template the partials/taxonomylist.html.twig
which begins with the next line:
{% set taxlist = taxonomylist.get() %}
If I dump the variable in the plugin’s code, then something like that is shown:
array (size=1)
'strings' =>
array (size=3)
28 => int 2
30 => int 1
25 => int 1
If I dump the taxonomylist.get()
in Twig it also shows the same, but if I try to dump taxlist in Twig, I get no results. The taxonomy template has an ‘if’ to check taxonomy list variable, what has the good result - TRUE
- even if I can’t dump it, and also the for loop also not works on it.
The question is: What did I wrong? How can I fix this situation? For me it seems everything is okay to work well, but I don’t know why, I can’t work with this.