Hello, we have an external application that can save images to our Chevereto gallery. While these images are public domain, we'd still like to provide a link to the image source page. So we added a field for "attribution" to the chv_images table.
Images uploaded from our external app populate this field fine, and the URL shows for each image in Chevereto. We also added a field in the Anywhere Uploader form for attribution, and it shows the value from the database (if there is one).
We'd like to have changes or new entries to this field to be saved to the database, and that is where I am stuck. I have reviewed class.image.php and class.upload.php, but am not seeing where to make these edits.
For example, I have tried adding 'attribution' => $params['attribution'] to $image_insert_values, which doesn't work. I do not get an error, and other values are saved fine, but whatever has been entered for attribution does not get saved.
I understand this type of customization is outside the scope of normal tech support, but I would greatly appreciate any info on which files need to be edited, and where within those files we should be looking.
Many thanks in advance!
Images uploaded from our external app populate this field fine, and the URL shows for each image in Chevereto. We also added a field in the Anywhere Uploader form for attribution, and it shows the value from the database (if there is one).
We'd like to have changes or new entries to this field to be saved to the database, and that is where I am stuck. I have reviewed class.image.php and class.upload.php, but am not seeing where to make these edits.
For example, I have tried adding 'attribution' => $params['attribution'] to $image_insert_values, which doesn't work. I do not get an error, and other values are saved fine, but whatever has been entered for attribution does not get saved.
I understand this type of customization is outside the scope of normal tech support, but I would greatly appreciate any info on which files need to be edited, and where within those files we should be looking.
Many thanks in advance!