Hi, guys. I'm working with a paginator templatetag, and I'm trying to apply a custom style to the current page.
In the code below, page.number renders *outside* the forloop, but not *inside* the forloop. {{ page.number }} << this one renders, but the next page.number does not. {% for page in page.object_list %} <span class="{% ifequal page.number forloop.counter %}current{% else %}page{% endifequal %}"> {{ forloop.counter }} </span> {% endfor %} How can I get that page.number inside the loop? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---