Re: newbie: Filter an inclusion tag

2008-06-19 Thread pihentagy
Thanks! Saved my day :) On Jun 17, 2:32 am, Ned Batchelder <[EMAIL PROTECTED]> wrote: > I think this will work: > >     {% filter truncatewords:10 %} >     {% i18n_attr auction 'description' LANGUAGE_CODE %} >     {% endfilter %} > > --Ned.http://nedbatchelder.com > pihentagy wrote: > > Hi all!

Re: newbie: Filter an inclusion tag

2008-06-16 Thread Ned Batchelder
I think this will work: {% filter truncatewords:10 %} {% i18n_attr auction 'description' LANGUAGE_CODE %} {% endfilter %} --Ned. http://nedbatchelder.com pihentagy wrote: > Hi all! > > I have an inclusion tag: > {% i18n_attr auction 'description' LANGUAGE_CODE %} > > I don't know ho

Re: newbie: Filter an inclusion tag

2008-06-16 Thread Aaron Fay
Hello, Filter it in your inclusion template, for instance if your tag returns a result from your auction object: def il8n_attr(context, arg, arg2, lang_code): # do you processing return {'result': my_result} register.inclusion_tag('il8n-inclusion.html', takes_context=True)(il8n_attr) #

newbie: Filter an inclusion tag

2008-06-16 Thread pihentagy
Hi all! I have an inclusion tag: {% i18n_attr auction 'description' LANGUAGE_CODE %} I don't know how can I filter it with truncatewords. {% i18n_attr auction 'description' LANGUAGE_CODE|truncatewords:10 %} doesn't work. Any ideas? thanks --~--~-~--~~~---~--~~