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!
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
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)
#
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
--~--~-~--~~~---~--~~
4 matches
Mail list logo