Place in .ext config jqadmin

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!
Oscar
Posts: 13
Joined: 16 Jul 2021, 14:51

Place in .ext config jqadmin

Post by Oscar » 25 Aug 2021, 10:26

Hi if i add in in the last line (90 => 'Mypanel',) in
vendor\aimeos\ai-admin-jqadm\config\admin\jqadm\navbar.php

Code: Select all

<?php

return [
	0 => 'dashboard',
	10 => [
		'' => 'sales',
		10 => 'order',
		20 => 'subscription',
	],
	20 => [
		'' => 'goods',
		10 => 'product',
		20 => 'catalog',
		30 => 'attribute',
		40 => 'supplier',
	],
	30 => [
		'' => 'users',
		10 => 'customer',
		20 => 'group',
	],
	40 => [
		'' => 'marketing',
		10 => 'coupon',
		20 => 'rule',
		30 => 'review',
	],
	50 => [
		'' => 'configuration',
		10 => 'settings',
		20 => 'service',
		30 => 'plugin',
	],
	60 => [
		'' => 'locale',
		10 => 'locale',
		20 => 'locale/site',
		30 => 'locale/language',
		40 => 'locale/currency',
	],
	70 => [
		'' => 'type',
		10 => 'type/attribute',
		20 => 'type/attribute/lists',
		30 => 'type/attribute/property',
		40 => 'type/catalog/lists',
		50 => 'type/customer/lists',
		60 => 'type/customer/property',
		70 => 'type/media',
		80 => 'type/media/lists',
		90 => 'type/media/property',
		100 => 'type/plugin',
		110 => 'type/price',
		120 => 'type/price/lists',
		130 => 'type/price/property',
		140 => 'type/product',
		150 => 'type/product/lists',
		160 => 'type/product/property',
		170 => 'type/service',
		180 => 'type/service/lists',
		190 => 'type/stock',
		200 => 'type/tag',
		210 => 'type/text',
		220 => 'type/text/lists',
	],
	80 => 'log',
	90 => 'Mypanel',
];
All runs ok, but i trying to adding it to my ext and can't.
Must i follow some concrete directory structure for the navbar.php and the resource.php?.
Thanks for the help

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

Re: Place in .ext config jqadmin

Post by aimeos » 26 Aug 2021, 05:42

In your own extension, you must keep care of the directory structure too or you add the directory names to the configuration so it will build the complete configuration key. In your example, the ./config/admin.php file of your extension must look like:

Code: Select all

<?php

return [
	'jqadm' => [
		'navbar' => [
			90 => 'mypanel'
		]
	]
];
The complete config key is "admin/jqadm/navbar" and the "admin.php" resolves to the first part of the key. In the ai-admin-jqadm, the "admin/jqadm" directores resolve to the first two parts and "navbar.php" to the third one.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Oscar
Posts: 13
Joined: 16 Jul 2021, 14:51

Re: Place in .ext config jqadmin

Post by Oscar » 26 Aug 2021, 12:26

Ok ill try 👍👍
Thx for help

Oscar
Posts: 13
Joined: 16 Jul 2021, 14:51

Re: Place in .ext config jqadmin

Post by Oscar » 30 Aug 2021, 09:42

Runs perfect! Thx

Post Reply