Pages not showing in Advanced Page List

Permalink Browser Info Environment
Hi all

I have a one-page editing interface for the creation of pages, based on Andrew's HOWTO. The code which creates the pages is the following:

public function add() {
      if($this->isPost()){
         Loader::model('collection_types');
         $path = "/candidate-services/vacancies";
         $newPage = Page::getByPath($path);
         $newPageData = array('cName' => $this->post('pageName'), 'cDescription' => $this->post('pageDesc'), 'cDatePublic' => '2011-05-01');
         $ct = CollectionType::getByHandle('vacancy');
         $p = $newPage->add($ct, $newPageData);
         $this->saveData($p);
         $this->redirect('/dashboard/vacancies/', 'job_added');
      }
   }


When I create a page in this way, it doesn't appear in the Advanced Page List until I resave it (either in the one-page editing interface, or using the Properties window from the Sitemap). After that, it appears in the list as it should.

The ordinary Page List block displays these pages without any trouble, so there must be some difference in the way the Advanced Page List block treats pages which causes this problem.

I suspect it might be to do with the cDatePublic (as you can see in the code above I've hard-coded that in to try to find the problem).

Any thoughts?

Type: Discussion
Status: New
melat0nin
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.