How to update image object with php?

Author Message

Vytautas Germanavičius

Thursday 02 November 2006 9:30:44 am

I try to update list of products with PHP.
I wrote extension to read info from CSV file, which add product to my EZ publish site, and updates info, if there are imported that product.
With text info i have no problems. But image even i overwrite original file, i update info in database, site shows old images, because import do not update resized version.

Has anyone idea, how to force EZ to create resized version of added image?

{set-block scope=root variable=cache_ttl}0{/set-block}

Claudia Kosny

Friday 03 November 2006 1:07:10 am

Hi Esu

Maybe you can try to delete them so the aliases are recreated the next time a template requests one. If you want to force recreation with the script have a look at the ezimagealiashandler.php, especially function imageAlias. Although this might take a while if you have lots of products.

Claudia

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.