OblikStudio / kirby-entity-field

Kirby field that acts as a one-entry structure.
MIT License
48 stars 0 forks source link

Using composer link-field directory #14

Closed tobystokes closed 1 year ago

tobystokes commented 1 year ago

If you try to install both this and your link-field plugin, this one gets overwritten by the link-field plugin!

I suspect it is just this installer-name field needs updating: https://github.com/OblikStudio/kirby-entity-field/blob/bec896552cf33e12e1d8d0b835cec59a53677bcd/composer.json#L32

hdodov commented 1 year ago

Whoops, that's right, yeah. Check out the latest 2.0.1. version. It should be fixed now.

hdodov commented 1 year ago

@tobystokes note that if you use the newer versions of Kirby, you might be able to use the Object field, which behaves in essentially the same way as the Entity field. You might be better off with it, so check it out if you haven't.

tobystokes commented 1 year ago

Cheers @hdodov ! I actually really like the layout of your entity field, it's ideal for visually relating fields on a section of a page while leaving them easily editable - although I use the ->toObject() method, which looks identical to toEntity()