Hi,
I am trying to populate certain image fields from the filename.
it is like 090713_Hamburg_SomeTitle
I would like to set 09-07-13 as the image date, Hamburg as location
and SomeTitel as title.
As a one off I could just designa SQL update that does this, but I need
it work genericly, whenever an new file is identified
in an album folder
any ideas ?
Comments
This can be done but will be quite some work using image filters. You will have to divide the file name using standard php functions like `explode` and then set the database values. You have to do this using the object model framework:
`
$imageobject->set("","");
$imageobject->save();
`
You have of couse to have this image object.
Also `09-07-13` is not a valid date, you need to include the time as well (Datetime field format is "YYYY-MM-DD hh-mm-ss")