Hi all, I’m trying to build a multi language site but I want the images to stay the same across the whole site and all languages.
I’ve tried setting the translate to false, that makes the files filed greyed out in the backend but it doesn’t give me any images in the front-end.
headerimage:
label: Header Image
type: files
translate: false
I’m sure it’s something stupid, but I can’t seem to figure out what I’m doing wrong exactly.
Hey and welcome to the forum.
What is the context of this field, please?
Have you selected an image in the default language? It should then also show up in the non-default language but with the select and upload options disabled, example from Starterkit:
Hi and thank you for the quick reply. It is a slider with multiple images.
In the home.nl.txt:
Headerimage:
- file://ag9qVxG1CDO0eScL
- file://0I3mduN0v8zyzA37
- file://6P9nz7Rl10d5lt3b
- file://7ihUgAOsAQVMhTky
- file://nELWlKq6IvGwuLjc
In the home.yml:
columns:
main:
width: 2/3
sections:
fields:
type: fields
fields:
headerimage:
label: Header Image
type: files
translate:false
“nl” is my default language, and the field is uneditable in the “en” language which is good, but it’s also empty.
Is the field key present in the translation content file or even a value stored there (it shouldn’t be). Maybe you saved the translation before you added the translate: false
property? If you have a headerimage
key in the translation, remove it and see if that fixes the issue.
I think there’s something else wrong with the multiple languages. I’m also unable to add or remove languages in the panel. And all my links that I’ve put in the panel don’t automatically add the language /en or /nl…?
Have you set the languages
prop in your config?