I'm rendering a node through panelizer with a paragraph field. Paragraph entities are also being rendered by panelizer.
This by default renders contextual links to edit the fields on the paragraph entity.

I wanted to be able to use FAPE to edit individual paragraph item entities. So I tried to modify FAPE to allow that.

I got FAPE to hide all the other deltas with #access = FALSE; by passing $delta in the URL. If no delta is passed than all items would render. If a delta is passed only that item will render.

At the moment there is some hard coding for paragraph items, this would most likely need to be updated work with entity reference fields.

I did mess around a little with a multi value image field that was using media browser widget. I was able to get it to hide the deltas but the table still renders an empty TD. This does not seem to be an issue when using with a paragraph field.

I'm still unable to get contextual links to work but figured I would get this patch up here so others can possibly get it working.

Patch coming soon.

Comments

gooddesignusa created an issue. See original summary.

gooddesignusa’s picture

Status: Needs review » Needs work

The last submitted patch, 2: fape-one_item_edit_multivalue_field-2713115-1-7.patch, failed testing.