This patch adds support for cloning, importing and exporting display suite settings for the 2.x branch

Comments

thtas’s picture

StatusFileSize
new4.21 KB
thtas’s picture

I feel like bundle copy should be providing hooks for other modules to use here.
Then Display suite would be responsible for providing the code in this patch.

If this approach would be better i'd be happy to provide a patch for that instead.

thtas’s picture

Issue summary: View changes

other patch was for 1.1

aucovic’s picture

That's awesome! Thank you so much!

Patch couldn't be applied with patch manager though, so I had to fix it before applying ("a/" and "/b" was missing):

diff --git a/bundle_copy.module b/bundle_copy.module
index 95282f94d26699364d39197220ad5848b330967f..bc93b19f321ee9df1f2f66c1a33386a9bd2e38e1 100755
--- a/bundle_copy.module
+++ b/bundle_copy.module

mxt’s picture

Issue summary: View changes

Provided patch in #1 works well for me also (to correctly apply the patch, changes in #3 are needed).

Please notice:

  1. some basic bundle properties are not cloned (e.g. "publishing options" and "multilingual support" options, "display settings" and "menu settings")
  2. View modes in cloned bundles are not activated automatically (you have to do this manually, but once done this, all fields and configurations appears)
  3. If you have some DS custom block regions in the original bundle, these are not cloned and you have to recreate these in the cloned bundle (I think this is ok because block regions needs different machine names)

Thank you very much for this useful patch

kaido.toomingas’s picture

StatusFileSize
new4.21 KB

Added fixed patch and it worked also for me. Tried it out with commerce product and content types. This didn't enable (copied) custom view modes but this is not a big problem at this point.

alfthecat’s picture

Patch applied cleanly but the Full Content display mode, which I was hoping for, didn't get copied. After I enabled it manually it didn't have any of the configurations made on the source node type.

fizk’s picture

Status: Needs review » Needs work

If this approach would be better i'd be happy to provide a patch for that instead.

@thtas That sounds like a good idea. Would be able to provide such a patch for 7.x-2.x?

fizk’s picture

Project: Bundle Copy » Bundle Copy Display Suite
Version: 7.x-2.x-dev »

Moving to the new Bundle Copy Display Suite module.

jstoller’s picture

StatusFileSize
new4.06 KB

Here's a re-roll of #5 against the 7.x-2.x of Bundle Copy.