processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

Show label such as "New item" on new repeaters before fields are populated #467

Open Toutouwai opened 1 year ago

Toutouwai commented 1 year ago

Short description of the enhancement

The "Repeater item labels" feature is great, but when in use it has the side-effect that the label for newly added repeater items often looks poorly formed because in a new item no field values are available yet.

So a format like this... 2022-11-14_155202 ...comes out looking like this in the page editor... 2022-11-14_155300

It would be nice if there was an option to tell PW not to attempt to use the custom label format on new items and just label it "New item" or something like that.

It's probably possible to do this with a hook but it would be nice to have it built-in.