On 3/11/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> i want to pass different widths depending on what the user wants. I
> tried this:
>
> <img src = "{{ p.get_photo_url|thumbnail:"width={{size}}" }}"
> width="{{size}}" />
>
> but it doesnt parse. Any clues?

Hey Kenneth,

Variables within variables aren't supported. To accomplish what you
want, you'll have to write either a custom tag or filter. (It's easy
enough to do.)

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to