diff --git a/Config/config.php b/Config/config.php
index 1d2ad0f..fd613e6 100644
--- a/Config/config.php
+++ b/Config/config.php
@@ -43,6 +43,12 @@
],
/*
|--------------------------------------------------------------------------
+ | Set the sidebar position of the block menu item
+ |--------------------------------------------------------------------------
+ */
+ 'sidebar-position' => 15,
+ /*
+ |--------------------------------------------------------------------------
| Array of middleware that will be applied on the page module front end routes
|--------------------------------------------------------------------------
*/
diff --git a/Events/Handlers/RegisterBlogSidebar.php b/Events/Handlers/RegisterBlogSidebar.php
index da0b7a8..323ff29 100644
--- a/Events/Handlers/RegisterBlogSidebar.php
+++ b/Events/Handlers/RegisterBlogSidebar.php
@@ -18,7 +18,7 @@ public function extendWith(\Maatwebsite\Sidebar\Menu $menu)
$menu->group(trans('core::sidebar.content'), function (Group $group) {
$group->item(trans('blog::blog.title'), function (Item $item) {
$item->icon('fa fa-copy');
- $item->weight(15);
+ $item->weight(config('asgard.blog.config.sidebar-position', 15));
$item->item(trans('blog::post.title.post'), function (Item $item) {
$item->icon('fa fa-copy');
diff --git a/changelog.yml b/changelog.yml
index 18f907c..5b72ac6 100644
--- a/changelog.yml
+++ b/changelog.yml
@@ -1,6 +1,8 @@
url: https://github.com/AsgardCms/Blog
versions:
"3.0.1@unreleased":
+ added:
+ - Read the sidebar position from configuration file, default to 15
changed:
- Removed usages of URL::route()
in favor of route()
removed: