[TYPO3-dam] Converting traditional image field to DAM relations

René Fritz r.fritz at colorcube.de
Fri Mar 2 09:59:23 CET 2007


On Friday 02 March 2007 09:38:17 Davide Principi wrote:
> _We are talking about tt_content images_. I think to do the following:

Yes

> For each textpic/images tt_content record
>   For each file in the "image" field (comma separated list)
>
>     1. copy the file from uploads/ to a target directory
>     2. push the file in the target dir into the DAM index (why not?
> assign a category? can I do it here?)
>     3. create references
>     4 (optionally) delete image field content
>     5 (optionally) delete uploads/ original file.

Sounds good

Remarks to point 2.
a) For a folder an indexing setup can be defined which will be used for files 
in that folder and can be used to apply categories. That way there's no need 
to apply a special category. On the other hand most people will not use/know 
that feature.

b) Have a look for the function tx_dam_db::getMetaForUploads(). This can fetch 
meta data for "uploads" files from matching indexed files.

Btw. If you think the update function is not the right place for such a 
conversion it could be placed in a Media>Tools module.

René

-- 
COLORCUBE
digital media lab

www.colorcube.de


More information about the TYPO3-project-dam mailing list