- π¨πSwitzerland cburschka
Tricky, but not as much as I feared.
The entity_reference URL belongs to the "extra" values which are not technically fields, and which are emitted depending on checkboxes in the settings form. It would be feasible to create additional settings for some of these values that are conditional on the checkbox being checked.
(Beside the URL, it might be useful to do this with the "Author" field, which is technically itself an entity_reference field but which is impossible to customize via the view-mode. Currently it looks like the "Author" checkbox in the settings doesn't actually do anything, and the "uid" field is always emitted as an HTML string.)
- πΊπΈUnited States nicxvan
I am moving support to version 3, can you please confirm if this issue still exists in version 3.
If it does still exist please change the version dropdown to 3.0.x and set the status to Needs Work.I suspect this issue has not been fixed so we can look at it there if you confirm.
Thank you!
- leymannx Berlin
Configurable would be nice. Alternatively we could just extend the path formatter.
- Status changed to Needs review
5 months ago 12:16pm 30 July 2024 - πΊπΈUnited States nicxvan
Thank you leymannx, please post that as a merge request and I would be happy to review it for you and merge it in once it's complete.
- Status changed to Needs work
5 months ago 1:13pm 30 July 2024 - Assigned to nicxvan
- πΊπΈUnited States nicxvan
Actually I can move it to an MR for now, if you figure out why it's duplicating that would be great.
- πΊπΈUnited States nicxvan
I moved the schema to the existing config/schema
- Issue was unassigned.
- πΊπΈUnited States nicxvan
With the changes I made I don't see the duplicate summary, do you see the duplicate still with the MR?
(I moved the schema and I added $summary = parent::settingsSummary();)If not I'll merge this in once you confirm.
- Status changed to Needs review
5 months ago 1:39pm 30 July 2024 - leymannx Berlin
Ahhh yeah, could be the duplicate schema file caused that glitch. Currently AFK for 1h, will check when I'm back. Thank you @nicxvan π€
- leymannx Berlin
For me it was not a duplicate summary, for me it was the whole settings form being duplicated.
As soon as I added the parent calls like you did, it works. This I can confirm now.
Leaving on needs review for you to review again.
- leymannx Berlin
I think doing the parent calls in all settings related methods is a standard thing to do in all field formatters I can see so far.
- Status changed to Fixed
5 months ago 2:42am 31 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.