Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
Just want to make sure I got it right, where is the view file for the left-hand side of the admin screen in the backend? In other words, the dashboard options, like manage, catalog, people, marketing, reports etc...
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
There is no view file for the left side navigation menu. We are generating the menu HTML from code. Please look into this section of code in 1- Website\Areas\Admin\Views\Shared\_Layout.cshtml Code:<!-- Navigation -->
@Html.Action("Navigation", "Dashboard")
2- Website\Areas\Admin\Controllers\DashboardController.cs Search for Code:public ActionResult Navigation()
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
That was quick, where are the admin groups rights settings being created? in other words the settings for, catalog admins, Junior admin, order admins etc ...
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Please open the file \Website\App_Data\adminmenu.xml roles="System,Admin,Junior Admin,Manage Catalog,Manage Orders"E.g Code:
<menuItem title="Manage" icon="fa fa-tasks" roles="System,Admin,Junior Admin,Manage Catalog,Manage Orders" description="The Management menu is your main work area, you will be able to manage your daily activities here.">
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
Again, thank you for your quick reply.
I am going to assume that by adding and removing values in the "roles=" I can manipulate the menu structure? I believe this is correct.
That being said, instead of modifying the original file, is there a way that this file can be overridden by including it in a theme?
My last question would be, if I were to create a new role, example "ArsOrderManager", I can add it here, is this a correct statement?
I understand that there will be other issues with the "ArsOrderManager" role being added to the backend.
I welcome your feedback as this is extremely important to us.
Many thanks for your quick reply
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:That being said, instead of modifying the original file, is there a way that this file can be overridden by including it in a theme? This is not possible in the current version. You can take a backup of the file and edit the original file to achieve your requirements. Quote:My last question would be, if I were to create a new role, example "ArsOrderManager", I can add it here, is this a correct statement? Yes, As far as backend implementation is correct, you can add this in the XML file.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
That is great news, one last concern. In the admin area when you click manage, and then you click orders, it displays a grid. A user is allowed to check mark an order and then using the update drop-down button, they have various options. What would be the best way eliminate or disable, the delete and export options?
Again many thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
You can remove the options from UI. Please follow the steps 1- Open file Website\Areas\Admin\Views\Orders\_ListOrders.cshtml 2- Search for Code:gridActions.Add(new GridAction("EXPORT", "Export selected"));
gridActions.Add(new GridAction("DELETE", "Delete selected"));
3- Comment out these lines or remove these lines. Or you can add logic to show/hide the options depending on the user role.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close