add condition view/can_edit to contentpage