This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
3 months 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 Book for SEBLOD
4218 Posts
Kadministrator
3 months ago
0
Level 1

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

Get a VIP membership