/**
  * Adds the field for name field label
  */
 private function AddNextUrlField()
 {
     $name = 'NextUrl';
     $this->selectorNext = new PageUrlSelector($name, Trans($this->Label($name)), $this->register->GetNextUrl());
     $this->selectorNext->SetRequired($this->ErrorPrefix($name));
     $this->Elements()->AddElement($name, $this->selectorNext);
 }
 private function AddPageItemSelector()
 {
     $name = 'PageItem';
     $this->selector = new PageUrlSelector($name, Trans($this->Label($name)), $this->naviItem->GetPageItem());
     if ($this->Value('Type') == 'PageItem') {
         $this->selector->SetRequired($this->ErrorPrefix($name));
     }
     $this->Elements()->AddElement($name, $this->selector);
 }