Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: Extend/Decorate getFormattedImage (Image class)

$
0
0

Sure. If a user uploads an image, the class name of the image will automatically be changed to RSImage -- so you can overload a method of the image class. I think that's what you want to do. You probably don't need the cacheFilename()/deleteFormatedRSImages() stuff.
In the master branch, there is also a check if the filename has changed. You'll need that too.

I've have to note, that this doesn't work with Uncle Cheese's KickAssets module and if you use Uploadify, you'll need the latest version from github.

// edit
This is meant as a starting point on how to overload or extend/decorate the image class. You still have a lot of work to do.


Posted to: Extend/Decorate getFormattedImage (Image class) | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles