Go on with comments
This commit is contained in:
parent
b7ce57b541
commit
978abff176
5 changed files with 24 additions and 154 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue