On Mar 26, 6:56 pm, DuncanM <[EMAIL PROTECTED]> wrote:
> I have a template that looks like such:
>
> {% if object_list %}
>
> {% for menu in object_list %}
> <p>
> <a href="{{ menu.get_absolute_slug }}">{{ menu.name }}</a><br />
> Description: {{ menu.description }}
> </p>
>
> {% endfor %}
>
> {% else %}
>
> <p>No menus have been created yet, please check back soon.</p>
>
> {% endif %}
>
> Due to layout restrictions I would like to add "Page 1, 2" etc if
> there are more then 7 menu items (e.g. display 7 items per page)
>
> How would I go about this?
>
> Thanks
> Duncan
Have you looked at Django's pagination?
http://www.djangoproject.com/documentation/models/pagination/
Brian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---