Another possible option is to force an old install of sorl. Try this: pip install sorl-thumbnail==3.2.5
-Chris On Sun, Nov 28, 2010 at 8:05 AM, Mike Peters <[email protected]>wrote: > On 27 November 2010 15:19, Chris Moffitt <[email protected]> wrote: > >> I haven't been actively following sorl development lately but it looks >> like they are pushing out a new version that has this new syntax. >> >> I currently use version 3.2.5 and it still has the same syntax and should >> work unmodified. >> >> Anyone have experience with the newer sorl code? Looks like we're going to >> have to figure out what we want to do on a go forward basis. >> >> -Chris >> >> > > So it seems the current stock templates don't play nicely with the current > version of sorl. I've created my own templates in which I've had to use the > following syntax to get images to display: > > eg I changed: > > {% thumbnail product.main_image.picture 85x85 as image %} > <a href="{{ product.get_absolute_url }}"><img src="{{ image > }}" width="{{ image.width }}" height="{{ image.height }}" /></a> > > to: > {% thumbnail product.main_image.picture "85x85" as image %} > <a href="{{ product.get_absolute_url }}"><img src="{{ > image.url }}" width="{{ image.width }}" height="{{ image.height }}" /></a> > {% endthumbnail %} > > Note the "'s around the image dimensions and the endthumbnail tag. I also > had to change src="{{ image }}" to src="{{ image.url }}" as with just {{ > image }} the url was for a non existent cache url, although I'm not sure > that is down to some incorrect config on my part. If anyone has a better > suggestion as how to do this then please let me know :-) > > Thanks > (PS apologies if this comes through twice, I initially sent from a > different email address to the one I subscribed with) > > -- > Mike > Web Site: http://www.ice2o.com > Photos: http://www.flickr.com/photos/mikedpeters/ > Registered Linux User #247123 > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<satchmo-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Satchmo users" 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/satchmo-users?hl=en.
