FIX: fix translations for template paths in blog
This commit is contained in:
@@ -7,5 +7,6 @@ return [
|
|||||||
'blog' => 'Blog',
|
'blog' => 'Blog',
|
||||||
'allArticles' => 'All articles',
|
'allArticles' => 'All articles',
|
||||||
'newArticle' => 'Write new article',
|
'newArticle' => 'Write new article',
|
||||||
'editArticle' => 'Editing article'
|
'editArticle' => 'Editing article',
|
||||||
|
'templatePath' => 'Articles',
|
||||||
];
|
];
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
return [
|
return [
|
||||||
'name' => 'Article list',
|
'name' => 'Article list',
|
||||||
'description' => 'Module for displaying list of articles on web',
|
'description' => 'Module for displaying list of articles on web',
|
||||||
|
'templatePath' => 'Article list',
|
||||||
];
|
];
|
||||||
@@ -76,11 +76,11 @@ class Handler implements TemplateHandler
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'module' => 'ArticleList',
|
'module' => 'ArticleList',
|
||||||
'templateName' => 'articlelist::admin.templatePath'
|
'templateName' => 'articlelist::module.templatePath'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'module' => 'Article',
|
'module' => 'Article',
|
||||||
'templateName' => 'article::admin.templatePath'
|
'templateName' => 'article::module.templatePath'
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user