coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: treehstn on August 09, 2026, 08:59:40 PM

Title: Can admin assign pid?
Post by: treehstn on August 09, 2026, 08:59:40 PM
I have a situation where I'm building a large multifaceted system using several programs which uses Coppermine for the images.  I need a field that is a unique image ID but I want to be able to say what the prefix is.  It might be something like FAM-PH-0000001. There will be multiple Coppermine databases so another might have the prefix of FAM-REC-0000001 or FAM-BIO-0000001. It's important that the ID's be unique across the database and the user's should not have access to add or change that field.  But it does need to be viewed on the image view by anyone looking at it. Ideally the number would be automatically assigned to each photo as they are being uploaded but if I have to go in manually and add them as images are loaded that would work also.

I tried to find the pid in the database and couldn't locate it.

Is this possible? Maybe by using one of the custom fields in the image description but I'd have to be able to limit who can change that field...