Code

Opened 6 years ago

Closed 6 years ago

#8994 closed (duplicate)

Allow url tags to save result to context variable

Reported by: hvendelbo 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 hvendelbo 6 years ago.
docs,comments,code
8994-2.patch (2.6 KB) - added by hvendelbo 6 years ago.
defaulttags.py changes. same as second half of the first file

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by hvendelbo

docs,comments,code

Changed 6 years ago by hvendelbo

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

comment:1 Changed 6 years ago by hvendelbo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

dupe r8716

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.