Admin Dashboard - Add a custom tab in locale menu

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
mohal_04
Advanced
Posts: 108
Joined: 27 Mar 2018, 05:59

Admin Dashboard - Add a custom tab in locale menu

Post by mohal_04 » 17 Apr 2018, 07:00

Laravel: 5.6
Aimeos: 2018.04
PHP: 7.x

Hello everyone,

Can anyone guide me how to add new page under Locale Settings? See attached screen-shot:
New Locale Page
New Locale Page
new_locale_section.jpg (49.16 KiB) Viewed 4023 times
Thanks!

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

Re: Admin Dashboard - Add a custom tab in Locale menu

Post by aimeos » 18 Apr 2018, 07:20

Create a Factory and a Standard implementation for the new panel like these ones:
https://github.com/aimeos/ai-admin-jqad ... e/Currency
Place them in your own extension in ./admin/jqadm/src/Admin/JQAdm/Locale/<name>/

Add a template for list and detail view like these:
https://github.com/aimeos/ai-admin-jqad ... e/currency
Place them in your own extension in ./admin/jqadm/templates/locale/<name>/

Overwrite the configuration for locale in the configuration file of your extension and add the name of your new panel as "locale/<name>":
https://github.com/aimeos/ai-admin-jqad ... in.php#L17

Add permissions for groups in the configuration file of your extension for your new panel like here:
https://github.com/aimeos/ai-admin-jqad ... n.php#L244
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

swat
Posts: 10
Joined: 15 Jul 2019, 13:01

Re: Admin Dashboard - Add a custom tab in locale menu

Post by swat » 15 Jul 2019, 13:03

Good afternoon, the last 2 links are not working.

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

Re: Admin Dashboard - Add a custom tab in locale menu

Post by aimeos » 15 Jul 2019, 14:01

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

swat
Posts: 10
Joined: 15 Jul 2019, 13:01

Re: Admin Dashboard - Add a custom tab in locale menu

Post by swat » 15 Jul 2019, 14:29

Tell me, how to specify the read new navbar and resource? I added new files but the information is displayed on the old.

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

Re: Admin Dashboard - Add a custom tab in locale menu

Post by aimeos » 15 Jul 2019, 16:03

You have to use in your ./config/shop.php file:

Code: Select all

'admin' => [
  'jqadm' => [
    'navbar' => [
      'locale' => [
		'locale',
		'locale/site',
		'locale/language',
		'locale/currency',
		// ...
	],
     ],
   ],
]
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

swat
Posts: 10
Joined: 15 Jul 2019, 13:01

Re: Admin Dashboard - Add a custom tab in locale menu

Post by swat » 16 Jul 2019, 09:11

I added a new file to the shop and added a locale to it, oh, nothing changed anyway, I also tried to add a file to the file msjop but with no result. Navbar files and resource I have / my extension / config / oifv /. Can I add them to the wrong directory ?

swat
Posts: 10
Joined: 15 Jul 2019, 13:01

Re: Admin Dashboard - Add a custom tab in locale menu

Post by swat » 16 Jul 2019, 09:14

I found them to be placed in / my extension / config / admin / jqadm /. Thank)

Post Reply