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

swentel’s picture

Title: Features exportable ND Fields » Exportable Fields
Project: Node displays » Display Suite
Version: 6.x-2.4 » 7.x-1.x-dev

Moving 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).

Deciphered’s picture

Thanks 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.

swentel’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Moving 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.

Deciphered’s picture

Fantasic news.

Wish I could be in Chicago to meet you in person, but alas, it can't be.

screenage’s picture

subscribing

jstoller’s picture

subscribing

AndyF’s picture

subscribe - would be grand to have this!

xtfer’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

I have made some progress with ctools exportables for 6.x-2.x, I will look at addressing this.

xtfer’s picture

Status: Active » Closed (won't fix)

Im 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.