Assuming this is happening in the backend; you can extend the DCA. If you add a save_callback to one of the fields you can run your own custom code. The entry you need to add to an existing field looks like this (and you can find examples in most extensions)
Code:
'save_callback' => array
(
array('tl_catalog_items_createdir', 'createUserDir'),
)
tl_catalog_items_createdir is a classname I made up which you have to create in a custom dca file (for example /system/modules/catalog_createdir/dca/ tl_catalog_items.php). This file is the file which you must use to edit the dca.
Bookmarks