Hello,

Does someone knows how to do a loop on a int inside template, e.g. :

<div align="left"><font size="-1">Result&nbsp;Page:&nbsp;</font>:
{% for p in pages %}
    {% ifequal p page %}   
        <font color="brown"><strong> {{p}} </strong></font>
    {% else %}
        <a href="/page/{{p}}/" target="resultframe"> {{p}} </a> 
    {% endifequal %}
{% endfor %}
</div>

Where pages is an int. Do i have to use a special filter function ?

Cheers,
             Vincent.

-- 
-----------------------<[EMAIL PROTECTED]>------------------------
Vincent Garonne                           http://cern.ch/vincent.garonne
CERN                                 PH, CH-1211, Geneva 23, Switzerland
Tel. +41 22 76 71181                                Fax. +41 22 76 78350
----------------------------------=------------------------------------- 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to