Commit d5bb287c by Frédéric

Cron fix

parent ed706459
...@@ -54,7 +54,7 @@ class ContentTypeFile ...@@ -54,7 +54,7 @@ class ContentTypeFile
'name' => ucfirst($this->flux->getContentType()), 'name' => ucfirst($this->flux->getContentType()),
'singular_name' => ucfirst($this->flux->getContentType()), 'singular_name' => ucfirst($this->flux->getContentType()),
'fields' => $this->getFields(), 'fields' => $this->getFields(),
'default_status' => 'published'
] ]
]; ];
...@@ -83,9 +83,13 @@ class ContentTypeFile ...@@ -83,9 +83,13 @@ class ContentTypeFile
]; ];
} }
$fields['title'] = [
'type' => 'text'
];
$fields['slug'] = [ $fields['slug'] = [
'type' => 'slug', 'type' => 'slug',
'uses' => ['syndicobjectid'] 'uses' => 'title'
]; ];
return $fields; return $fields;
......
...@@ -80,6 +80,7 @@ class Data ...@@ -80,6 +80,7 @@ class Data
$data[$key] = $v; $data[$key] = $v;
} }
$data['title'] = $data['syndicobjectname'];
$data['status'] = 'published'; $data['status'] = 'published';
$data['datepublish'] = new \DateTimeImmutable(); $data['datepublish'] = new \DateTimeImmutable();
array_push($items, $data); array_push($items, $data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment