Hi everybody:
I would want to know in the django template tags how to get the next and the
previous element when I am iterating in the forloop, I haven't found
something similar, for instance I would want something like this:
{% for element in list_elements %}
{{forloop.get_prev_element.title}}
{{forloop.get_next_element.title}}
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.