/**
  * AJAX action for checking exhibit page data.
  */
 public function validatePageAction()
 {
     try {
         $exhibitPage = $this->_helper->db->findById(null, 'ExhibitPage');
     } catch (Exception $e) {
         $exhibitPage = new ExhibitPage();
         if ($exhibit_id = $this->getParam('exhibit_id')) {
             $exhibitPage->exhibit_id = $exhibit_id;
         }
         if ($parent_id = $this->getParam('parent_id')) {
             $exhibitPage->parent_id = $parent_id;
         }
     }
     $exhibitPage->setPostData($_POST);
     $exhibitPage->validateSlug();
     if ($exhibitPage->isValid()) {
         $data = array('success' => true);
     } else {
         $data = array('success' => false, 'messages' => $exhibitPage->getErrors()->get());
     }
     $this->_helper->json($data);
 }