Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to prevent to translate field in blueprint?

Started by Adrien Goua 7 years ago · 0 replies · 759 views
7 years ago

Hi ! I have an issue that I don't really know how to solve regarding a multilanguages website.
I have set the website in french and in english. In the Homepage blueprint I have use colorpicker field that I use to let the user customize the background color and and the text color of the different section of the page.
It's working great but I want that all of these fields to be prevented from being translated, basically the user will change the colours in the french version and it will apply the style in both the french version or english version.

I see two possibilities here :

  • Is there a way to add an option to the field in the blueprint to prevent it from being translated ?
  • Is there a way to get the translation of a specific field in a specific language (here I get the field value using {{ page.header.color3 }} for example ) ?

Do you have any idea ?

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago