Developer forum

Forum » PIM » Copy field content to new language

Copy field content to new language

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

In the PIM setting there is a checkbox field saying "Do not copy Field content when adding new Language on Product". 

What does that checkbox do? The documentation does not mention it at all. https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/pim

Besides beeing curious I have a customer that would like to have field content to be copied when adding anew language. And that checkbox sounds very much like preventing just that. But field content does not get copied to a new language.


Replies

 
Jonas Faaborg Dynamicweb Employee
Jonas Faaborg
Reply

Hi Aki. 

Your assumption is right, it is related to the inheritance of attribute enrichments across languages. More specifically,

If "Do not copy field content when adding new language on product" is empty, then localizing to any of the given sublanguages will inherit the enrichments of all product fields and system fields from the default language regardless of the advanced field settings. Thus, if an attribute is defined as being different across languages then it would still inherit when localizing the product to sublanguages. 

If "Do not copy field content when adding new language on product" is checked, then the advanced field settings will control the inheritance behavior. More specifically, product enrichments in attributes (product fields/system fields) that are different across languages will NOT automatically inherit to sublangauges upon localization. On the other hand attributes that are the same across languages will inherit the enrichments from the default langauge. 

in relation to your last point, all field content should be inherited if the checkbox is empty regardless of the advanced field settings when adding localizing a product to sublanguages. If that is not the case please feel free to sent an example my way. 

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi Jonas,

Thanks for the clarification. 

In a solution where the checkbox is not cheked I created a product. Then added a language by clicking on a language flag. But no values are copied to the new langage. Perhaps I am missunderstanding the whole thing. :) 

 

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Jonas,do you have any input on my latest post. Have I missunderstood what "adding new language on product" is?

Regards / Aki

 
Anouk van der Veer
Reply

Hi Aki! Also ran into this today. Did you ever find out? Feel like I'm missing something. 

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi Anouk,

In that project we created a function that automatically creates language versions for all languages regardless if the flags are active or not in PIM. And copies relevant data to the language versions. 

In another PIM project, if I recall correctly, it worked as excepted. I can check that and come back with an update. 

Regards / Aki

 
Anouk van der Veer
Reply

Hi Aki, 

If you could, that would be great. Tried on a few different projects and all seem to not copy any content regardless of this setting being on of off when adding a new language to a product. 

 
Aki Ruuskanen
Aki Ruuskanen
Reply
This post has been marked as an answer

Hi Anouk,

Yeah, I dont have any problems with copying field content when adding a new language. 

Attaching a litte screen capture of the process. 

Regards / Aki

Votes for this answer: 1
 
Anouk van der Veer
Reply

Hi Aki.

Somehow it didn't occur to me to give it a name and save it... Sorry to waste your time with that, but your screen capture did help me out.

Thanks so much!

Kind regards, 
Anouk

 
Aki Ruuskanen
Aki Ruuskanen
Reply

No problem. Glad to be of help. 

Regards / Aki

 

You must be logged in to post in the forum