Custom Date field Custom Date field
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Custom Date field

Started by justal, November 04, 2006, 08:29:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

justal

I'd like to use Coppermine as a way of archiving my family records, this will include photos as well as scanned documents such as birth certificates, mariage certificates etc... Because if this I will need to include date information for each item I upload. Is there a way of making one of the custom fields into one that will except a date, or is there a hack somewhere that will add an extra field that allows me to give each item a particular date stamp.

I will need to be able to search based on this date as well.

Thanks.
Al.

Nibbler

You can just type a date in and then search by it. That would let you search by date, year, or month but not by a range of dates.

justal

OK, I should have said I would like to sort things on the date as well, so a simple textual date entry won't be sufficient unfortunately.

Al.

superjacent

Here's my solution to this problem.

Incoporate the date in the filename of the image eg "yyyymmdd-nnn.jpg".

n = just a sequencing number.

Now, when searching, search only on filename field.   The result list is returned in filename ascending order.

To view all your year 2006 images simply enter "2006", if August 2006 is required enter "200608".

If you don't know the day of month, or the month of the year etc. I'm sure you could think of a consistent method, I'm yet to, I keep swapping and changing.

I suppose you could use the above convention and incorporate that into the title or description and the same effect would or could be achieved.   I've gone with the filename method as I can use an automatic renamer on my local machine before uploading to the server.

I realize though that if you have 1000's of images stored and not using any particular naming convention the above info is useless.

I would prefer a purpose built field for "Date of Image".