I'd like to be able to use ds, ds_forms and rel to customise the layout of bean entities and field collections. In ds_forms_form_field_ui_field_overview_form_alter the comment states "We currently only work on node forms or custom forms."

The form alter is checking for nodes and rel_build entity types, is there a way of including other forms? I've registered the form in question with rel but it's still showing up as a bean entity type rather than a rel_build.

Comments

tanc’s picture

Title: Possible to support other entities? » Possible for ds_forms' layouts to support other entities?
StatusFileSize
new674 bytes

Here's a patch to support bean forms at least. It would be good to support any fieldable entity.

tanc’s picture

Anyone with any thoughts about this?

swentel’s picture

Status: Active » Needs work

Comment and bean can go in, I guess. User form will be a little harder, so I would like to keep that out for now.

Maybe we should change this to if (in_array()). Also ds_layout_list() in ds.field_ui.inc should be modified then as well, in case rel isn't enabled.

swentel’s picture

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

Moving to second branch first

swentel’s picture

marked #1427764: DS layouts not available for field collections Edit\Add forms as dupe.

So, field collection, bean and comments by default is something that should work out fine. I'll do some tests this weekend.

swentel’s picture

Status: Needs work » Fixed
StatusFileSize
new2.36 KB

Here's a patch for 7.x-2.x.
Might be backported one day, but for now, this stays here.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.