Jump to content

Custom fields for images doesn't save for PageTable pages


humanafterall
 Share

Recommended Posts

I'm using some Custom fields for images: 
https://processwire.com/blog/posts/pw-3.0.142/#custom-fields-for-files-images

When I save the page, and return the fields are blank. When I re-add the text to the fields and save again then the fields save as expected.

I know this is stated as being quite experimental but it's super useful feature I'd love to get working correctly.

I have fields that are CKEditor fields but have overidden this on the image specific template. I've also tried it with regular text fields and I get the same bug.

(currently using Processwire 3.0.155)

**UPDATE**
I've found this issue is specific to editing on pages using the PageTable fieldtype. The fields are not saving when I save the page in the PageTable.

Link to comment
Share on other sites

We've found the same thing on PW 3.0.148 with any custom image fields, when the images are inside a repeater. After drag-and-dropping the images in, on the first save after that, any custom field text (e.g. caption, photographer) is simply lost. In a subsequent save, the text is saved fine.

Every time a new image is dragged in, the page must be saved before adding text to the custom fields for that image. Otherwise text entered for the new image is lost (text previously entered for other images in the same repeater is fine).

This seems to have been logged as a bug on 23 January: https://github.com/processwire/processwire-issues/issues/1070

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...