Created a new theme, but it is not recognized
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Created a new theme, but it is not recognized
I created a new theme under the ./packages directory.
Partials are recognized just fine and composer updates fine, but CSS and JS files are loaded from default. Also under the admin settings the new theme is not on the list.
Here is a picture that shows, that files themselves are copied correctly.

How does the theme detection work? I could rename the theme to "defaul" but, I think it would not be a proper step.
Partials are recognized just fine and composer updates fine, but CSS and JS files are loaded from default. Also under the admin settings the new theme is not on the list.
Here is a picture that shows, that files themselves are copied correctly.
How does the theme detection work? I could rename the theme to "defaul" but, I think it would not be a proper step.
Re: Created a new theme, but it is not recognized
Never mind, found it already.
Needed to copy new theme declaration to:
~/packages/notebooks/config/client.php
Needed to copy new theme declaration to:
~/packages/notebooks/config/client.php
Code: Select all
<?php
return [
'html' => [
'themes' => [
'notebooks' => 'notebooks',
],
],
'jsonapi' => [
],
];
Re: Created a new theme, but it is not recognized
Clear the cache to remove the cached components:
Code: Select all
php artisan aimeos:clearProfessional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
Re: Created a new theme, but it is not recognized
Usually I do not write here if it is a cache issue. To me it looks more like some assets are hardcoded.aimeos wrote: ↑08 Nov 2025, 11:26 Clear the cache to remove the cached components:Code: Select all
php artisan aimeos:clear
When I copied "base.blade.php" to "~/resources/views/vendor/shop" directory and changed the contents. then it worked.
But my assumption was that it would also work when it is in a separate package such as "~/packages/notebooks/views/base.blade.php"
But it doesn't.
Picture attached.
Re: Created a new theme, but it is not recognized
Your "notebook" package contains a "views/base.blade.php", which should be used if you select the theme in the Aimeos backend settings. The view itself references CSS/JS files which are included in your package but they are stored in the themes/default folder and that's the reason why you see the "default" CSS/JS links in the HTML output. The solution is to adapt the "views/base.blade.php" in your "notebook" extension to use the files from the vendor/theme/default you've probably renamed to vendor/theme/notebook.
This is unintuitive and we will change that so the themes directory is already named like your extension and the Blade template references them automatically.
The basket CSS/JS links are cached and you have to remove the session cookie of the browser to get the new version after switching the theme.
This is unintuitive and we will change that so the themes directory is already named like your extension and the Blade template references them automatically.
The basket CSS/JS links are cached and you have to remove the session cookie of the browser to get the new version after switching the theme.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
Re: Created a new theme, but it is not recognized
The base.blade.php has been fixed now. Can you please check if a new extension works out of the box if you switch the theme (basket CSS/JS can still return cached links)?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
Re: Created a new theme, but it is not recognized
Sorry, but how can I check? I ran composer update, but nothing changed. Also when I check here, the file looks the same.
https://github.com/aimeos/aimeos-larave ... .blade.php
Re: Created a new theme, but it is not recognized
Please create a new Laravel theme extension here:
https://aimeos.org/extensions
https://aimeos.org/extensions
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
Re: Created a new theme, but it is not recognized
I do not want to create a new extension every time. I would like to know how things work under the hood. Anyway I checked for the diff and found out that this was the only changed file.aimeos wrote: ↑10 Nov 2025, 12:55 Please create a new Laravel theme extension here:
https://aimeos.org/extensions
Of course a huge load of files were also present under the ~/notebooks/views that are not included on my plugin (except for the base.blade.php). I am assuming that only those files need to be included, which are different from the default. If that is not the case, then I would say, it is not a very good design.
But end result is that it is not working.
If I copy ~/packages/notebooks/views/base.blade.php to /resources/views/vendor/shop/base.blade.php then it works immediately. Even without refreshing cache.
Each test was performed in incognito browser, so cookies and sessions should not be an issue.
Picture of the folder layouts: