Opened 15 years ago
Closed 15 years ago
#11307 closed (invalid)
template
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: | no | UI/UX: | no |
Description
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.
Please do not use trad for asking support questions. Use either django-users or #django.