0
votes

I'm trying to use Sitecore Powershell extensions to add a new language version. I run a command like the following from the console: "Add-ItemVersion -Path "PATH" -TargetLanguage "LANGUAGE""

The New item gets created but the layouts on the "final layout" tabs are missing on the new version.

How do I achieve this?

1

1 Answers

1
votes

The "Final Layout" is language and version specific, so it makes sense that it would be empty when creating a new language version. Some options you have:

  • Use Shared Layout instead, if you just want the same layout across languages.
  • Add additional SPE code to copy the Final Layout from the 'en' version, if you want the have different layout but provide a starting point.
  • You might be able to use Language Fallback on the Final Layout field, but I have not attempted this myself. But really, this is what the Shared Layout is intended to do.

More information on versioned layouts can be found in Sitecore documentation.