Differents layouts for sites

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!
krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Differents layouts for sites

Post by krzysiekp » 05 May 2022, 22:31

I have several sites in Aimeos. How to do different layout for each other.

krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Re: Differents layouts for sites

Post by krzysiekp » 06 May 2022, 07:59

@Aimeos Can you answer this question ? This subject is important for me

cyberdev
Posts: 14
Joined: 06 May 2022, 09:10

Re: Differents layouts for sites

Post by cyberdev » 06 May 2022, 09:22

use Laravel theme Extension for different site code..

krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Re: Differents layouts for sites

Post by krzysiekp » 06 May 2022, 10:30

Theme allows add only css and js but I want change my html structure for different sites. I use /ext/my-theme folder.
I don't know how use several extension theme for different sites and configure it.

cyberdev
Posts: 14
Joined: 06 May 2022, 09:10

Re: Differents layouts for sites

Post by cyberdev » 06 May 2022, 11:32

Generally aimeos mad it much easier copy the require template from ai-client-html to laravel theme ext/template, thats will overide all templates, even you can be have own config options as well service provider.

krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Re: Differents layouts for sites

Post by krzysiekp » 09 May 2022, 12:30

I create extension on https://aimeos.org/extensions (Aimeos Laravel 2021)
I copy extension to /ext/my-theme folder and change layout but not working.

I need a very detailed description of how to install extension / theme and change the layout in it and other things because the one on the website doesn't work.

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

Re: Differents layouts for sites

Post by aimeos » 09 May 2022, 13:04

You have to add your extension to the ./packages/, then you can use "composer req ...". It's described here:
https://aimeos.org/docs/2021.x/laravel/ ... -extension
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Re: Differents layouts for sites

Post by krzysiekp » 09 May 2022, 13:37

But I want change my extension in package folder and I have to composer update ?
How to make the changes immediately visible ?
For example I change file

Code: Select all

.\packages\new-theme\client\html\templates\catalog\detail\body-standard.blade.php
How to make the change visible on the shop ?

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

Re: Differents layouts for sites

Post by aimeos » 09 May 2022, 13:47

The changes in the blade file should be immediately visible because composer only creates a symlink in the vendor folder. Make sure, Laravel doesn't cache the views and use this to clear the Laravel view cache:

Code: Select all

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

krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Re: Differents layouts for sites

Post by krzysiekp » 09 May 2022, 13:54

I have error after execute

Code: Select all

composer req aimeos-extensions/my-theme
Symlink failed, fallback to use mirroring!

Post Reply