How to add custom items in admin dashboard

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
ajrmzcs
Posts: 20
Joined: 09 Jul 2018, 21:59

How to add custom items in admin dashboard

Post by ajrmzcs » 09 Jul 2018, 22:28

Hello,

For the Laravel package 2018.4, I wonder how to add in an specific order a custom item with its logo to the admin dashboard navigation sidebar.

Can you help me please?
Screenshot from 2018-07-09 17-26-27.png
Screenshot from 2018-07-09 17-26-27.png (13.28 KiB) Viewed 2724 times
Thanks,

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: How to add custom items in admin dashboard

Post by aimeos » 10 Jul 2018, 20:53

Here's a description how to add a new panel to the admin interface:
laravel-package-f18/admin-dashboard-add ... html#p6043

The entries in the navigation bar and their order is determined by this configuration file (which you can overwrite in your own project specific extension):
https://github.com/aimeos/ai-admin-jqad ... navbar.php

Permissions for your new panel is configured here resp. also overwrite this in your own extension:
https://github.com/aimeos/ai-admin-jqad ... source.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ajrmzcs
Posts: 20
Joined: 09 Jul 2018, 21:59

Re: How to add custom items in admin dashboard

Post by ajrmzcs » 10 Jul 2018, 22:54

Hi thanks for your response,

Im working with version 2018.4 for laravel, and I didn't find the navbar.php file. However I changed ext/ai-admin-jqadm/admin/jqadm/config/admin.php -> navbar array and it worked, but when I revert this file and try this change from my custom ext it does not work... I've tried adding a copy of admin.php in ext/mycustomext/admin/jqadm/config/admin.php and in ext/mycustomext/config/admin.php and for the first location it does not change anything on the dasboard. However in in the second location the my custom item is added but at the end of the admin/sidebar.

Which is the correct place to put this array?

Thank you very much for your help.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: How to add custom items in admin dashboard

Post by aimeos » 12 Jul 2018, 11:53

You need to replace the whole navbar array to get your desired order and this can only be done in the configuration files of your application (./config/shop.php for Laravel) or via TypoScript for TYPO3.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply