You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often use the API to output images directly from image fields without going through the WYSIWYG.
When I go to add an image in the admin, I discovered that this image is immediately displayed on the front end, even before I save the page. And if I decide not to save my changes, the image is still saved to the page!
This almost burned me a couple times when I uploaded an image just as a demonstration and then later discovered that the image had actually gone up on the site!
The text was updated successfully, but these errors were encountered:
That's not normal PW behaviour and when I tested I couldn't reproduce it. If images have been uploaded but the containing page not saved, those images are not part of the formatted value of the images field. Check that:
You are not outputting the unformatted value of the field somehow, e.g. page output formatting is off, or you are using $page->getUnformatted()
There is no module or non-core code that is automatically saving the page.
I often use the API to output images directly from image fields without going through the WYSIWYG.
When I go to add an image in the admin, I discovered that this image is immediately displayed on the front end, even before I save the page. And if I decide not to save my changes, the image is still saved to the page!
This almost burned me a couple times when I uploaded an image just as a demonstration and then later discovered that the image had actually gone up on the site!
The text was updated successfully, but these errors were encountered: