pagination of child pages

18 views
Skip to first unread message

captainmish

unread,
Mar 4, 2011, 7:10:49 AM3/4/11
to django-page-cms
Hello

I am using current_page.get_children_for_frontend to build a kind of
news aggregator. This is now getting a bit long, and I'm going to need
to paginate it. Tying django-pagination with {% autopaginate
current_page.get_children_for_frontent %} doesnt seem to be working.

Has anyone managed to get some kind of pagination of child pages
working? Any tips welcome.

Thanks,

faden

unread,
Mar 4, 2011, 7:57:20 AM3/4/11
to django-page-cms
I would personaly try to use the Django paginator object:

http://docs.djangoproject.com/en/dev/topics/pagination/?from=olddocs#paginator-objects

Maybe create a new template tag could be a good solution?

{% page_children_paginator current_page "-creation_date" 5 %}

What do you think?
Reply all
Reply to author
Forward
0 new messages