1👍
Within the context
dictionary passed to the standard_index_listing
tag, you have the current page available as 'page'
. You can use this to filter the queryset (see http://docs.wagtail.io/en/v1.6.2/reference/pages/queryset_reference.html#module-wagtail.wagtailcore.query):
def standard_index_listing(context):
pages = StandardPage.objects.live().child_of(context['page'])
return {
'pages': pages.select_related('feed_image'),
'request': context['request'],
}
Source:stackexchange.com