Commit d5bb287c by Frédéric

Cron fix

parent ed706459
......@@ -54,7 +54,7 @@ class ContentTypeFile
'name' => ucfirst($this->flux->getContentType()),
'singular_name' => ucfirst($this->flux->getContentType()),
'fields' => $this->getFields(),
'default_status' => 'published'
]
];
......@@ -83,9 +83,13 @@ class ContentTypeFile
];
}
$fields['title'] = [
'type' => 'text'
];
$fields['slug'] = [
'type' => 'slug',
'uses' => ['syndicobjectid']
'uses' => 'title'
];
return $fields;
......
......@@ -80,6 +80,7 @@ class Data
$data[$key] = $v;
}
$data['title'] = $data['syndicobjectname'];
$data['status'] = 'published';
$data['datepublish'] = new \DateTimeImmutable();
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