Skip to content

Commit

Permalink
FIX: PostType default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Schmidt authored Jul 16, 2018
1 parent bbd39d7 commit f2c5323
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public function createAction(string $title, string $blogIdentifier) {
$nodeTemplate->setProperty('title', $title);
$nodeTemplate->setProperty('author', $author);
$nodeTemplate->setProperty('archived', false);
$nodeTemplate->setProperty('postType', 'news');
$nodeTemplate->setHiddenInIndex(true);

$published = new \DateTime();
Expand Down Expand Up @@ -263,4 +264,4 @@ protected function getBlogNode(string $workspace, string $blogIdentifier){

return $blogNode;
}
}
}

0 comments on commit f2c5323

Please sign in to comment.