I’m new into Kirby and absolutely new into php. I have around 25 pages of static html plus their counterparts in an another language which are ready to publish. I want to integrate a „dynamic“ blog to the site - that’s why I came across Kirby, am still testing it locally and am very fond of it.
I don’t know how to code the snippets in such a way, that the page template finds a snippet according to the specific language.
This is the code for the default language (DE):
<?php snippet('codepagefooter') ?>
<?php snippet('codepagebody') ?>
The template finds the corresponding php snippets. I would like to direct it to codepageheadertr, codepagebodytr, codepagefootertr when the second language is chosen.
I tried putting a line in the languages php file:
‚navigation‘ => ‘codepagenavde’
That did not work.
Can somebody help me further? Thanks in advance,
PS: I should probably be able to solve it with routing. But believe me I don’t understand it.