forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: jimmyg0801 on April 24, 2012, 11:36:12 pm
-
My pictures are of people (i.e. models). The people (models) in the pictures have important information (i.e. name, address, telephone, email .. etc). Note that models are not users. They are subjects in the picture with information. I would like to create a plugin that adds a "Model_ID" to the pictures table which is a key to "Model_Info" table. Is this a resonable thing to do with a plugin? I use the Coppermine database (read-only) in my custom website and the Coppermine theme for populating/editing the database.
Sorry if this is the wrong place to post this.
-
What's your actual question? You can add the model ID to any default or custom field and then use that value to load the model's information.
-
I see "owner_id" which would be me (the photogapher) and "user1-4" which I'm not sure what they're used for. To me, adding an addition field "model_id" as an index to a model table is very clean. I can do this manually I assume and not interfere with the Coppermine application at all. I just thought a plugin to create the extra field and the additional database table would be cleaner in the long run.
-
Default fields are:
- title
- description
- keywords
Custom user fields are
- user1
- user2
- user3
- user4
Not sure why you want to add even one more column to the database, as the user fields do exactly what you're asking for. You can enable them in the config.