Add basic pagination capabilities via the 'query' page data.