Code

Opened 5 years ago

Closed 5 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: UI/UX:

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.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Alex

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

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

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.