core icon indicating copy to clipboard operation
core copied to clipboard

Image path not remembered in 3.0 beta

Open Xander-Steinmann opened this issue 12 years ago • 4 comments

When you add an image in an Image field (NOT binary) or in the WYSIWYG editor, the image path is not stored/remembered the next time you edit an Image field or WYSIWYG. If you need to set a lot of images then it is quite cumbersome to go through the same folders over and over again, and not all clients know how to import content.

This can be reproduced as follows: Image field:

  1. Add an Image field (NOT Binary) called 'test' to the Banner structure
  2. Edit Banner Content "Stay Contected to Your Money" and set the image to /images/404.jpg

Note: if you now edit this image again, the path is fine

  1. Save/Publish
  2. Edit the same Banner again and edit the Image

The path is now set to the ROOT again, it should be the path that the image had or the last path you selected

WYSIWYG editor:

  1. Edit Content (Generic) "Thank You"
  2. Click "add/insert image" in the WYSIWYG editor
  3. Select /images/404.jpg

Note: if you edit this image now or add a new image, the path is fine

  1. Save/publish
  2. Edit the content again
  3. Edit the image or add a new image

The path is back in the ROOT

It seems that the state of the 'explorer' is only stored on the edit content page.

Xander-Steinmann avatar Oct 30 '14 13:10 Xander-Steinmann

+1

fishsmith avatar Oct 30 '14 13:10 fishsmith

Updated the code to remember the last opened folder.

Last opened path is stored in session.

samuelmortha avatar Dec 11 '14 12:12 samuelmortha

merged to master-3.1

jtesser avatar Dec 26 '14 14:12 jtesser

Failed on master-3.1//Postgres//Chrome Tried testing the 2 ways: Image field and WYSIWYG editor

  1. Image field: The path is set to the ROOT again, it should be the path that the image had or the last path you selected

  2. WYSIWYG editor: See issue #6889 for reference

shaydotcms avatar Jan 06 '15 04:01 shaydotcms