Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

How to prevent to translate field in blueprint?

Started by Adrien Goua 7 years ago · 0 replies · 491 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 Ton Haarmans, 5 years ago
13 1136 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 61 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 135 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 110 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 129 7 months ago