Part 1 (kUploadFormatter with "upload_dir")
- in Admin Console:
- go to Custom → Widgets section
- delete existing records in grid (if any)
- add new record
- in IDE:
- confirm, that image was uploaded somewhere (path is dynamic) under /system/user_files folder sub-folders
- in Admin Console:
- confirm, that in grid image for created record is displayed
- open created record for editing
- confirm, that image preview is displayed
- click on image preview
- confirm, that large image version (in original size) is displayed
Part 2 (kUploadFormatter without "upload_dir")
- in IDE:
- open /modules/custom/units/widgets/widgets_config.php file for editing
- for Image field remove (or comment-out) the upload_dir field option
- in Admin Console:
- go to Custom → Widgets section
- delete existing records in grid (if any)
- add new record
- in IDE:
- confirm, that image was uploaded somewhere (path is dynamic) under /system/widgets folder sub-folders
- in Admin Console:
- confirm, that in grid image for created record is displayed
- open created record for editing
- confirm, that image preview is displayed
- click on image preview
- confirm, that large image version (in original size) is displayed
Part 3 (kPictureFormatter with "upload_dir")
- in Admin Console:
- go to E-commerce → Manufacturers section
- delete existing records in grid (if any)
- add new record
- in IDE:
- confirm, that image was uploaded under /system/images/manufacturers folder
- in Admin Console:
- open created record for editing
- confirm, that image preview is displayed
- click on image preview
- confirm, that large image version (in original size) is displayed
Part 4 (kPictureFormatter without "upload_dir")
- in IDE:
- open /modules/in-commerce/units/manufacturers/manufacturers_config.php file for editing
- for Logo field remove (or comment-out) the upload_dir field option and add 'include_path' => 1 option
- in Admin Console:
- go to E-commerce → Manufacturers section
- delete existing records in grid (if any)
- add new record
- in IDE:
- confirm, that image was uploaded under /system/images folder
- in Admin Console:
- open created record for editing
- confirm, that image preview is displayed
- click on image preview
- confirm, that large image version (in original size) is displayed