Build categoryLinks manually so we can preserve category ordering across view/edit pages.