Currently, the module seems to format the field collection as a table on both the node view page and on the node edit page. In many use cases, we'd prefer to keep the edit page with standard formatting and only use the table when actually displaying the node. Is it possible to add this as an option?

I actually think that the current default of formatting both the view page and edit page is unexpected given how the "Manage Display" tab in Drupal typically works. When choosing a display for a normal Drupal field, you don't expect your choice of display to affect what is shown on the edit page.

So if an option isn't possible, I'd suggest that the table formatting should probably only be used when actually viewing the node (or the field collection entity itself), not on the edit page.

Thoughts?

--Ben

As a side note, I'm using the Acquia Marina theme to display the field collection table. The table looks great when on the node view page, but not-so-good on the node edit page (because the spacing is all funky).

Comments

BenK’s picture

Ahhhh, I just found the settings located at admin/config/user-interface/field_collection_table. I didn't realize those were there.

Perhaps, the "Format forms as table" setting should be unchecked by default?

Thanks,
Ben

tim.plunkett’s picture

Status: Active » Closed (duplicate)

I added that checkbox as a stopgap, but #1252262: Provide a Field Collection Table widget will add this flexibility for all 4 cases (view/edit the collection, view/edit one item).
I just have to figure out how to not screw over everyone who is using that checkbox already... :(

CarbonPig’s picture

Status: Closed (duplicate) » Active

This is a neat feature. Would it be possible to make this more flexible so that you could select which field-collection to format as a table on the node edit form?

I'm not sure how difficult this would be to implement from a code perspective. Essentially, I need some of the field-collections as tables and some not. This toggle seems to be universal unless I'm missing something.

Cheers,

CarbonPig

gazwal’s picture

tim.plunkett’s picture

Status: Active » Closed (duplicate)