Set page_id for each generated page