Hi Marco, You may probably use Medium helper and specify the file version there. For e.g. in your view you may try to do something like this:
<?php echo $media->embed('s/transfer/img/' . $photo['basename']); ?>
this snippet will render 's' version of image.
> Hi
> I use MediaPlugin of David Persson.
> All works perfectly.
> I have only this question about the use of this plugin
> I have the model Photo that is configurated like :
>
> var $actsAs = array(
> 'Media.Polymorphic' => array(
> 'classField' => 'model',
> 'foreignKey' => 'foreign_key',
> ),
> 'Media.Transfer' => array(
> 'trustClient' => false,
> 'destinationFile' => '.......,
> 'baseDirectory' => MEDIA_TRANSFER,
> 'createDirectory' => true,
> 'alternativeFile' => 100
> ),
> 'Media.Media' => array(
> 'metadataLevel' => 2,
> 'makeVersions' => true,
> 'filterDirectory' => MEDIA_FILTER,
> ));
>
> The plugin is configurated to have version "m",'l',"xl"
>
> Now this model is in hasOne relation with another model.
>
> I have noted that when I do a read operation with this another model I
> can't get the various resized version of Photo but only the single
> record relative to main photo.
> How can I to get all the resized version of photo?
>
> Many Thanks
> Marco
>
> 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
signature.asc
Description: This is a digitally signed message part.
