forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: treehstn on September 18, 2008, 06:04:01 am

Title: What field distinguishes the default thumbnail?
Post by: treehstn on September 18, 2008, 06:04:01 am
I'm using CM as a gallery engine for a database system that I'm working on.  I have a programmer working on part of the project.  He is not familiar with CM. 

What I need to do is enter the static url for each album into a field in one of my database tables.  When a user searches the database the search results are going to bring up the default thumbnail image for the attached CM album. 

What I can't figure out is what record or field in coppermine is distinguishing the default thumbnail.  I'm already going to have to manually copy and paste the static url for the albums.  I'd rather not do the same for the default thumbnail especially since I'd like to have the flexibility of changing the default thumbnail.  If I could have the programmer use a database call (don't know if I'm using the correct terminology) against the given album to display the thumbnail it would be great!!!

Thanks!
Title: Re: What field distinguishes the default thumbnail?
Post by: Nibbler on September 18, 2008, 11:00:26 am
It's the 'thumb' field. That corresponds to a Coppermine pid or if 0 you grab the last uploaded file as the thumb.
Title: Re: What field distinguishes the default thumbnail?
Post by: treehstn on September 18, 2008, 03:48:53 pm
Thanks Nibbler!  I'll pass on the info and see if he can get it to work.