On Tuesday 15 May 2007 15:35, [EMAIL PROTECTED] wrote: > Unless I'm missing something, Elvelind was suggesting that you have the > template writers put the size information into the url that will be used > in the 'src' link to retrieve the image. That way the size information > will be transmitted to your controller that handles serving the image, > which can then do the resize on the fly.
Ok, but I don't want to ask the template designer to write complex (X)HTML code... But I think I found a way to do that: with widgets. Arguments given to the widget display() method (or even to the __call__() one, which is more intuitive for a non-developper) can be the photo id, its size and so. The widget will just expand the complete url, as you suggested. This has an other benefit: I can switch from a widget to another, depending if I'm in display mode or in editing mode, where I need to add links :o) Thank you all for your suggestions; a big issue of the implementation is now solved! -- Frédéric http://www.gbiloba.org
pgp7HV1fmZ94c.pgp
Description: PGP signature

