Edit super admin interface

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!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Edit super admin interface

Post by ahmed31916 » 08 Jun 2022, 09:27

Hello,

How can we edit the jqadmin template for the super admin, I tried to edit the template files of the jqadmin of the myextension but it doesn't work (illogical). May we need to assign extension theme to the super admin in multi vendor marketplace?
OR maybe the super admin must have a special extension?

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

Re: Edit super admin interface

Post by aimeos » 09 Jun 2022, 06:03

The templates must be stored in the correct directory which is "<yourext>/templates/admin/jqadm/product/item.php" for example.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: Edit super admin interface

Post by ahmed31916 » 09 Jun 2022, 06:22

Yes, the templates stored in "<myext>/templates/admin/jqadm/", and not rely on it. :roll:

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

Re: Edit super admin interface

Post by aimeos » 10 Jun 2022, 07:38

Did you create a Laravel theme extension or a standard Aimeos extension where you've stored your new template?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
peter69
Posts: 95
Joined: 09 Jun 2022, 19:31

Re: Edit super admin interface

Post by peter69 » 10 Jun 2022, 16:16

I also have the same problem. The admin templates are not overwritten.

I created Laravel theme extension, then saved the template.
"packages/<mytheme>/templates/admin/jqadm/page.php"

I commented out the html where the aimeos logo is displayed, however the template does not overwrite.

I also tried with the dashboard template:
"packages/<mytheme>/templates/admin/jqadm/dashboard/item-order-latest.php"

And it doesn't overwrite the templates either.

I cleared the cache of views, routes, config, aimeos.

I also ran

Code: Select all

composer dump-autoload
.

But there was no change either.

It should be noted that I have not made any changes to manifest.php. I have left it as it is by default.

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: Edit super admin interface

Post by ahmed31916 » 10 Jun 2022, 17:44

Did you create a Laravel theme extension or a standard Aimeos extension where you've stored your new template?
The extension installed is Laravel theme extension, and it working fine with client html templates, but not working in jqadm templates.

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

Re: Edit admin interface templates

Post by aimeos » 11 Jun 2022, 16:56

The templates you store in the generated Laravel theme extensions for Aimeos are all theme specific. That means, they are only used if the theme is selected in the backend but the admin backend doesn't use different themes up to now.

The solution is to create a new Aimeos extension for the admin backend templates which is not theme specific and add the modified backend templates there or to change the manifest file of the existing theme extension and move the admin template configuration outside the theme sub-array, i.e.:

Code: Select all

	'template' => [
		'admin/jqadm/templates' => [
			'templates/admin/jqadm',
		],
		'admin/jsonadm/templates' => [
			'templates/admin/jsonadm',
		],
		'<your theme>' => [
			'client/jsonapi/templates' => [
				'templates/client/jsonapi',
			],
			'client/html/templates' => [
				'templates/client/html',
			],
			'controller/jobs/templates' => [
				'templates/controller/jobs',
			],
		],
	],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: Edit super admin interface

Post by ahmed31916 » 11 Jun 2022, 21:06

Perfect

User avatar
peter69
Posts: 95
Joined: 09 Jun 2022, 19:31

Re: Edit super admin interface

Post by peter69 » 11 Jun 2022, 21:16

It worked by moving the admin template settings out of the themes subfolder sub-array.

Thank you very much!

Post Reply