You're close. Don't use Nesh, use Sorl.
Take a look at this template for an example -
http://bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_store/shop/templates/shop/index.html
You need something like this-
{% load thumbnail %}
{% thumbnail product.main_image.picture 85x85 as image %}
<a href="{{ product.get_absolute_url }}"><img src="{{
image }}" width="{{ image.width }}" height="{{ image.height }}" /></a>
-Chris
On Mon, Aug 10, 2009 at 2:08 PM, Robocop <[email protected]> wrote:
>
> Hello,
> I've so far tried using the nesh thumbnail filter, and the sorl
> thumbnail tag, and have failed miserably with both. In the case of
> the nesh thumbnails, when i load the filter as recommended in the docs
> (http://code.google.com/p/django-utils/wiki/Thumbnail) with:
>
> {% load nesh.thumbnail %}
>
> I receive a "no valid template tag library" error, even though the app
> is loaded in my settings.py
>
> When i try doing things with sorl, i look to have generated thumbnails
> in my image directory, however the images are never rendered on the
> page. Using pdb i can step line by line through the code, and
> everything "appears" to be working, but still the images are not
> rendered on the page.
>
> My syntax using sorl looks as:
>
> <img src={% thumbnail product.main_image.picture 150x200
> detail %} />
>
> Could anyone offer any insight? Or better yet, show me an example of
> the most basic syntax to display a thumbnail of a product image?
> Thanks!
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---