e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
323 stars 214 forks source link

Possible Bug: Custom Field Images #4487

Open seth7609 opened 3 years ago

seth7609 commented 3 years ago

Bug Description

When using custom fields in pages/menus the image option does not assign uploaded images to _common_image. This forces me to have to go and import it at the media manager.

How to Reproduce

Steps to reproduce the behavior:

  1. Go to pages
  2. Add a custom field for image
  3. create/edit a page/menu
  4. go to the additional tab
  5. try to upload an image
Jimmi08 commented 3 years ago

Similar (to have it complet):
Not clear what are rules. Download plugin uploads the image to MM but you need to add common_image manually.. (if it wasn't changed)

https://github.com/e107inc/e107/issues/3905 https://github.com/e107inc/e107/issues/1522 https://github.com/e107inc/e107/issues/3276

Tested custom field with PHP 7.2: the custom image looks for category:_common (debug message) image is uploaded correctly and you can select it in the custom image field it is displayed correctly

But it doesn't have any category in the media manager, so you need to add it manually if you want to use this image in another place image

Then you can use it f.e. in news.

@seth7609 you don't need to import it again, just add a correct category on the image uploaded via custom field (unfortunately via MM, not directly in upload itself)