dadi / publish

Publish provides beautiful editorial interfaces for the management of content within API
https://dadi.cloud/en/publish
64 stars 13 forks source link

Enable string lists #744

Closed ohmoses closed 5 years ago

ohmoses commented 5 years ago

Closes #389

String fields can now have a flag publish.list, which makes the field display in the edit view as a list of items which can be added, removed, and reordered with drag-and-drop.

Behaves same as Google Keep:

Fixed bugs

As a note, I also enabled using values that don't start with http(s) even without a display.link template; in that case, http:// is added at the front, so that the user can write something like github.com and still get a preview link.

Future to-dos

list1 Screenshot_2019-07-08 Edit document DADI Publish Screenshot_2019-07-08 Edit document DADI Publish(1)

ohmoses commented 5 years ago

Oh, while I was touching the code, I changed a couple of instances of someFn.call(this, ...) to someFn(...), it evaluates to the same thing when the function is not called as a method. Hope that's okay.

eduardoboucas commented 5 years ago

Added some minor style comments. Haven't tried the functionality yet. I think I'll try to change the CI box to use the repo API first. 🤞

ohmoses commented 5 years ago

@davidmacp Awesome, thanks! :tada: