Objecttype voor themainstelling

Narrator: “It was not landed that week.” :upside_down_face:

2 likes

Is there any change on this? I just re-wrote a component for someone using objects type and they are unhappy that they can’t reorder.

4 likes

Hallo @awesomerobot, denk je dat dit binnenkort op iemands lijst komt te staan? Het lijkt erop dat niemand van het team hier een jaar naar heeft gekeken.

Bovendien is het behoorlijk erg dat ze allemaal “field_name-X” heten. Zou het mogelijk zijn om een veldnaam te hebben die daar gebruikt kan worden? Elke afzonderlijke moeten aanklikken om te zien wat er is, is een nachtmerrie als je meer dan een paar objecten hebt.

Als we de items niet opnieuw kunnen ordenen en je niet kunt zien wat ze zijn zonder erop te klikken, zal ik waarschijnlijk terug moeten naar het gebruik van een enkele tekenreeksinstelling met meerdere waarden gescheiden door, eh, een teken om de verschillende velden te scheiden. En ik denk dat je met de oude arrays dingen opnieuw kon ordenen, toch? Dus dit objecttype lijkt een stap terug voor iedereen behalve programmeurs.

2 likes

I don’t think there’s anything in process for reordering at the moment, though it’s still something we’d like to include. Renaming is already possible with the identifier property. For example, from the custom header links theme component

The name field is set as the identifier for each link, so you can see which link is which

2 likes

Hooray. I thought I must have overlooked that but have not managed to find it before. Thanks!

EDIT: And now I used the identifier property and added an ‘order’ field, so it’s not too bad. I still think being able to reorder settings would be nice, and it’s available with arrays. . .

Thanks again for your help

1 like

I made a commit a bit ago that adds re-ordering for objects. Here is a little test setting to show the buttons:

6 likes