add parent_is_[page] context variable