Commit 40764b7a authored by Andrew Bekesh's avatar Andrew Bekesh

Add config for idavoll namespace modules

parent 93cd5bd3
...@@ -22,8 +22,6 @@ return [ ...@@ -22,8 +22,6 @@ return [
| You can specify place from which you would like to use module views. | You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one, | You can use any combination, but generally it's advisable to add only one,
| extra view namespace. | extra view namespace.
| Available places are: from within your current backend theme, from within
| your current frontend theme and from resources folder.
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
......
...@@ -10,4 +10,22 @@ return [ ...@@ -10,4 +10,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => true,
],
]; ];
...@@ -44,10 +44,6 @@ class DashboardServiceProvider extends ServiceProvider ...@@ -44,10 +44,6 @@ class DashboardServiceProvider extends ServiceProvider
__DIR__ . '/../Resources/views' => base_path('resources/views/asgard/dashboard'), __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/dashboard'),
], 'views'); ], 'views');
$this->app['view']->prependNamespace(
'dashboard',
base_path('resources/views/asgard/dashboard')
);
$this->app['view']->prependNamespace( $this->app['view']->prependNamespace(
'dashboard', 'dashboard',
$theme->find(config('asgard.core.core.admin-theme'))->getPath() . '/views/modules/dashboard' $theme->find(config('asgard.core.core.admin-theme'))->getPath() . '/views/modules/dashboard'
......
...@@ -48,4 +48,22 @@ return [ ...@@ -48,4 +48,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => false,
],
]; ];
...@@ -18,4 +18,22 @@ return [ ...@@ -18,4 +18,22 @@ return [
| having to send it via the views | having to send it via the views
*/ */
'default_menu_presenter' => null, 'default_menu_presenter' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => false,
],
]; ];
...@@ -53,4 +53,22 @@ return [ ...@@ -53,4 +53,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => false,
],
]; ];
...@@ -10,4 +10,22 @@ return [ ...@@ -10,4 +10,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => false,
],
]; ];
...@@ -12,4 +12,22 @@ return [ ...@@ -12,4 +12,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => false,
],
]; ];
...@@ -18,4 +18,22 @@ return [ ...@@ -18,4 +18,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => false,
],
]; ];
...@@ -98,4 +98,22 @@ return [ ...@@ -98,4 +98,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => true,
],
]; ];
...@@ -67,8 +67,6 @@ class UserServiceProvider extends ServiceProvider ...@@ -67,8 +67,6 @@ class UserServiceProvider extends ServiceProvider
$this->publishes([ $this->publishes([
__DIR__ . '/../Resources/views' => base_path('resources/views/asgard/user'), __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/user'),
]); ]);
$this->loadViewsFrom(base_path('resources/views/asgard/user'), 'user');
$this->loadViewsFrom(__DIR__ . '/../Resources/views', 'user');
$this->publishConfig('user', 'permissions'); $this->publishConfig('user', 'permissions');
$this->publishConfig('user', 'config'); $this->publishConfig('user', 'config');
......
...@@ -10,4 +10,22 @@ return [ ...@@ -10,4 +10,22 @@ return [
| No custom sidebar: null | No custom sidebar: null
*/ */
'custom-sidebar' => null, 'custom-sidebar' => null,
/*
|--------------------------------------------------------------------------
| Load additional view namespaces for a module
|--------------------------------------------------------------------------
| You can specify place from which you would like to use module views.
| You can use any combination, but generally it's advisable to add only one,
| extra view namespace.
| By default every extra namespace will be set to false.
*/
'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name>
'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name>
'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name>
'resources' => false,
],
]; ];
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