Go on with comments

This commit is contained in:
Flavio Copes 2015-09-14 14:48:17 +02:00
parent b7ce57b541
commit 978abff176
5 changed files with 24 additions and 154 deletions

View file

@ -35,6 +35,13 @@ class CommentsPlugin extends Plugin
'onAdminTemplateNavPluginHook' => ['onAdminTemplateNavPluginHook', 0],
'onDataTypeExcludeFromDataManagerPluginHook' => ['onDataTypeExcludeFromDataManagerPluginHook', 0],
]);
$comments[] = [
'route' => 'comment-test-1',
'content' => 'A comment text'
];
$this->grav['twig']->comments = $comments;
}
/**