5 years ago
1
Topic

Hi,

The field 'upload_image_cropping' doesn't display the default image when nothing is recorded IF you active the "Advanced Mode" of the field.

How could we do to display the default image if no image is insert in the field please ?

I hacked the plugin, the file "/plugins/cck_field/upload_image_cropping/upload_image_cropping.php"

the onCCK_FieldPrepareStore method :

just before the final line of the method I added :


if($value == '')

 $value = '{"image_location":"'.$field->defaultvalue.'","image_title":"'.$imageTitle.'","image_description":"'.$imageDesc.'"}';

thx

Get a VIP membership
4229 Posts
Kadministrator
5 years ago
0
Level 1

Hi, I suggest you send this modification to Seblod via mail.

Get a Book for SEBLOD