On 11/3/06, RajeshD <[EMAIL PROTECTED]> wrote: > {% ifequal forloop.counter "1" %} > -- Insert code here to render the first blog entry --- > {% else %} > -- code for the rest of the blog entries --- > {% endifequal %}
Note that you should never have to do this: {% ifequal forloop.counter "1" %} Use this instead: {% if forloop.first %} For more on "forloop", see the "for" section here: http://www.djangobook.com/en/beta/chapter04/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---