Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Display Suite has Features support, but if a DS layout has a custom ND field the field won't get exported.
Would be great if it did, and even better if it detected that if a DS layout being exported had a ND field to export the field automatically (which you can do with a Features alter hook).
Comments
Comment #1
swentel CreditAttribution: swentel commentedMoving this to DS 7 first so I can fix that there - not sure yet what combination I'm going to use (ctools / features).
I know the export screen gives fields in D6 though, so that might be temporary working solution ? Need to check the alter functionality of features, but that will be after DS for D7 has its first official release (which reminds me to look at custom formatters too for fields since I'm going make changes to the ds fields in the next couple of days, I'll create patches for that if needed).
Comment #2
Deciphered CreditAttribution: Deciphered commentedThanks Swentel,
Custom Formatters will be getting an upgrade for 6.x, then 7.x, moving to require CTools for exportable support, and for the interface provided, but that won't be done until I've finished the work on my latest module, or at least until I release a stable build.
As for ND, the hooks I refer to are actually the hooks I used in CF, should be in the modules/features.inc file, so that should give you an idea on how to export the fields without re-writing for CTools support, but you will also have to define a hook to re-import the fields.
Would be great to see this in D6, but I understand the urge to move on.
P.S., I did have a quick play with DS 7.x recently, and it is looking good, love the new template switching system. Definitely looking forward to using it for real down the track.
Comment #3
swentel CreditAttribution: swentel commentedMoving back to 6.x - Custom UI fields are now fully exportable (along with layouts, view modes and field settings). Depends on CTools in D7. Will look after chicago to improve the D6 support for fields.
Comment #4
Deciphered CreditAttribution: Deciphered commentedFantasic news.
Wish I could be in Chicago to meet you in person, but alas, it can't be.
Comment #5
screenage CreditAttribution: screenage commentedsubscribing
Comment #6
jstollersubscribing
Comment #7
AndyF CreditAttribution: AndyF commentedsubscribe - would be grand to have this!
Comment #8
xtfer CreditAttribution: xtfer commentedI have made some progress with ctools exportables for 6.x-2.x, I will look at addressing this.
Comment #9
xtfer CreditAttribution: xtfer commentedIm not planning to do any more work on this currently. If you plan to use Features to move Displays around in 6.x, I recommend defining your fields in code rather than using the Field UI.