How to organize work with the frontend?
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- АндрейЖидилин
- Posts: 10
- Joined: 27 Apr 2022, 10:00
How to organize work with the frontend?
Hello.
I can not understand how to create a theme and how to work with it?
I created the extension as described in the documentation https://aimeos.org/docs/latest/developer/extensions/
Next, I need a copy of css and ys to be placed in the directory /packages/<my-extension>/themes/client/html/<my-theme>/...
And run composer up
Where can I get these files css and js?
I can not understand how to create a theme and how to work with it?
I created the extension as described in the documentation https://aimeos.org/docs/latest/developer/extensions/
Next, I need a copy of css and ys to be placed in the directory /packages/<my-extension>/themes/client/html/<my-theme>/...
And run composer up
Where can I get these files css and js?
Re: How to organize work with the frontend?
Use these ones: https://github.com/aimeos/ai-client-htm ... ml/default
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- АндрейЖидилин
- Posts: 10
- Joined: 27 Apr 2022, 10:00
Re: How to organize work with the frontend?
I copied and run composer up
But in the setting I do not see my theme
I see only Default
What else needs to be done to make the topic appear in the list?
But in the setting I do not see my theme
I see only Default
What else needs to be done to make the topic appear in the list?
Re: How to organize work with the frontend?
Did you create a Laravel theme extension here (not a standard Aimeos extension)?
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, give us a star
- АндрейЖидилин
- Posts: 10
- Joined: 27 Apr 2022, 10:00
Re: How to organize work with the frontend?
Yes, I created an extension and installed via composeraimeos wrote: ↑29 Apr 2022, 12:50 Did you create a Laravel theme extension here (not a standard Aimeos extension)?
https://aimeos.org/extensions
Screen: http://joxi.ru/Q2KdXRjCOGGwRA
Re: How to organize work with the frontend?
The ./config/client.php file of the generated extension misses a configuration:
Please add that to your ./config/client.php file in your extension and replace <extensionname> with the name of your extension.
This is now also fixed in the extension generator so new Laravel theme extensions will contain the necessary code
Code: Select all
<?php
return [
'html' => [
'themes' => [
'<extensionname>' => '<extensionname>',
],
],
'jsonapi' => [
],
];
This is now also fixed in the extension generator so new Laravel theme extensions will contain the necessary code
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- АндрейЖидилин
- Posts: 10
- Joined: 27 Apr 2022, 10:00
Re: How to organize work with the frontend?
thanks It works
- АндрейЖидилин
- Posts: 10
- Joined: 27 Apr 2022, 10:00
Re: How to organize work with the frontend?
Tell me what is the difference between
and
And what is the right command to use?
Code: Select all
composer req aimeos-themes/<my-theme>
Code: Select all
composer req aimeos-extensions/<my-theme>
Re: How to organize work with the frontend?
This one is correct for 2022.x versions, the documentation for 2022 isn't published yet but will be soon.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- АндрейЖидилин
- Posts: 10
- Joined: 27 Apr 2022, 10:00
Re: How to organize work with the frontend?
Okay, I installed the extension, but when I change
Nothing happens. Changes only when the file is changed
How can I change something without affecting the vendor's code?
Code: Select all
/packages/<my-extenshion>/views/base.blade.php
Code: Select all
/vendor/aimeos/aimeos-laravel/src/views/base.blade.php