Hello,
does anyone here know how I can build a multilingual website with Gantry 5 and the Helium template so that the URL is displayed in the respective language?
In Grav I get the 2nd language done with the “SLUG” but then Gantry can’t map the template because of the changed URL.
After you have configured your languages in admin, you have to save the pages in that languages. Each page must be saved with the menu, title and content translated.
In Gantry, you have to duplicate an outline, for example, home outline. Each outline can be assigned to a specific language in Assignments tab.
You can do that with the page particle, for example, to show a page in different languages.
Thank you for your help!
The page works in the 2 languages German and English, but I have to leave the URL in the main language German, because the Gantry menu references it.
If I enter a “Slug” in the 2nd language English so that the URL is in English, then Gantry will no longer find a reference to the template.
I hope I could explain it halfway understandable?
Sorry, I had not yet replied to your guess whether I had written “about_myself” without hyphen.
No, with underscore, that was not the problem, but I could now finally solve the problem, thanks to your great help.
The solution was that in the " In user\data\gantry5\themes\helium\config\inicio\assignments.yaml in the English version was “uebermich”, instead of “about_myself”.
After I adjusted this, and set the SLUG back to “about_myself”, it worked.
It’s amazing, no sooner do you get it right, it works.
Thanks for your effort and especially for your patience with you. If I had read your hints more attentively, I should have figured it out earlier.
Hello @Kaepsele.
I am very happy to have helped you and that together we will make this forum a source of knowledge about Grav and everything that surrounds it (Gantry, Twig, Markdown, PHP, etc)