I ended up creating a lot of attachments models, because each one of them 
had to have different settings, some would require only three images, other 
two, other images and pdf files ...

and I put the Configure::write('Media.Filter' ... configuration array on the 
constructor of each one of those models. LIke this:

function __construct(){
  parent::__construct();
  $l = array('convert' => 'image/jpeg', 'fit' => array(600, 450));
  $m = array('convert' => 'image/jpeg', 'fitCrop' => array(318, 160));
  $s = array('convert' => 'image/jpeg', 'fit' => array(200, 125));
  Configure::write('Media.filter', array('image' => compact('m','l','s'),
                                               'document' => array()));
 }

It's been some weeks I don't work on this app, but I guess it worked at that 
time. Still I don't understand why the plugin developer put the 
configurations of images sizes, and other files like one unique array on a 
core.php file. It sounds a lot more usual to me that different models would 
mostly require different upload settings ... 

anyway, the plugin is really interesting, I intend to stick with it and 
hopefully adapt it to my specific needs ...

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to