Opened 8 years ago

Closed 8 years ago

#8994 closed (duplicate)

Allow url tags to save result to context variable

Reported by: Henrik Vendelbo Owned by: nobody
Component: Template system Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When using translated blocks template tags cannot be embedded, but variables can. This change would allow

{% url about as about_url %}

Which outputs a blank string and saves the url in the context under 'about_url'

Attachments (2)

8994.patch (3.3 KB) - added by Henrik Vendelbo 8 years ago.
docs,comments,code
8994-2.patch (2.6 KB) - added by Henrik Vendelbo 8 years ago.
defaulttags.py changes. same as second half of the first file

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Henrik Vendelbo

Attachment: 8994.patch added

docs,comments,code

Changed 8 years ago by Henrik Vendelbo

Attachment: 8994-2.patch added

defaulttags.py changes. same as second half of the first file

comment:1 Changed 8 years ago by Henrik Vendelbo

Resolution: duplicate
Status: newclosed

dupe r8716

Note: See TracTickets for help on using tickets.
Back to Top