Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Taxonomy and multilanguage

plugins

Solved by Pierre Causse View solution

Started by Pierre Causse 4 years ago · 1 replies · 707 views
4 years ago

Hi !
I've finished a website, and my client asked me if I could add a multi language support. I did so, and activated french & english. Everything went ok, I can now create pages in both language. But since then, taxonomy has starting acting weird.

I had three tax : author, tags, category.
Now that multilanguage is on, only tags & category appear in the admin panel of a new page.

Also, I was embeding those taxonomy in html data in tags, like this for example

{% for auteur in page.header.taxonomy.auteurs %}{{ auteur }} {% endfor %}

And now it doens't work : /

[Update]
Ok, so it seems that my taxonomy have been translated, from "tags" to "tag", and "categorie" to "category". It can now access them in my pages, but "authors" is still missing. I guess that tag and category were commons taxonomies and that now that the site is multi language, they have been taken into account. How can I set the taxonomy in a multi language website ? I've search on the forum and doc, but I coulnd find anything...

Thanks in advance !

4 years ago Solution

Ok I found the solution, I don't know if it's because my grav update or because I activated multilanguage but my site.yalm had been overwrited. I changed it back and now it works : )

👍 2

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 1 week ago
4 167 1 week ago
Support · by nwhitfield, 1 week ago
2 144 1 week ago
Support · by stell, 3 weeks ago
5 376 2 weeks ago
Support · by gravinator, 1 month ago
5 571 2 weeks ago
Support · by Gravver, 3 weeks ago
6 355 3 weeks ago