parse pageids for subcategories