This site uses cookies and similar technologies.

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

I understand
17 days 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
4149 Posts
Kadministrator
15 days ago
0
Level 1

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

Get a Book for SEBLOD