Opened 7 years ago

Closed 7 years ago

#11307 closed (invalid)


Reported by: ankit Owned by: nobody
Component: Template system Version: 1.1-beta
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Inline template

In my template can i used <a href> tag.i want that if there is a field named 'id' it should give a href link over there.I have tried following options

1){% ifequal field.field.label "Id" %}

<a href =../../{{field.field}}>click here </a>

2){% ifequal field.field.label "Id" %}

<a href ="../../{{field.field}}">click here </a>

3){% ifequal field.field.label "Id" %}

<a href =../../{{field.field.value}}>click here </a>

4){% ifequal field.field.label "Id" %}

<a href ="../../"{{field.field}}>click here </a>

5){% ifequal field.field.label "Id" %}

<a href ={{field.field}}>click here </a>

in this case it is showing the addres of the current page.Means not showing the value of field.field

All the options does not work .It is not showing the value of field.field in href.field.field.label shows Id in href
when I displays the value field.field

{{field.field}} it is showing correct value.

Change History (1)

comment:1 Changed 7 years ago by Alex Gaynor

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

Please do not use trad for asking support questions. Use either django-users or #django.

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