[TASK] Assign page uids to templates