Template Files And app.blade.php

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!
tulparstudyo

Template Files And app.blade.php

Post by tulparstudyo » 03 Nov 2020, 14:21

Hi,
1.
I want to develop a theme for laravel aimeos.
Usually sections are loaded and rendered from themplates files in home page. Except for the two areas marked in the picture. Is it possible to load all sections from theme files by aimeos default?
this will reduce our intervention in the core installation.
2.
How can I owerwrite this setting in the my extension. My extension is creted via https://aimeos.org/extensions/ and it is in the ext folder.

'client' => [
'html' => [
'common' => [
'baseurl' => 'packages/tulparstudyo/shop/themes/frigian' ,
'template' => [
'baseurl' => public_path( 'packages/tulparstudyo/shop/themes/frigian' ),
],
],
],
],
Attachments
image-001.png
image-001.png (89.64 KiB) Viewed 1140 times

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

Re: Template Files And app.blade.php

Post by aimeos » 04 Nov 2020, 08:34

tulparstudyo wrote: 03 Nov 2020, 14:21 I want to develop a theme for laravel aimeos.
Usually sections are loaded and rendered from themplates files in home page. Except for the two areas marked in the picture. Is it possible to load all sections from theme files by aimeos default?
this will reduce our intervention in the core installation.
Yes, that's the case. The header and footer are from the Laravel application and Aimeos extensions doesn't have access to it but you can offer an alternative app.blade.php file that must be copied to the ./resource/views/ directory of the Laravel application.
tulparstudyo wrote: 03 Nov 2020, 14:21 How can I owerwrite this setting in the my extension. My extension is creted via https://aimeos.org/extensions/ and it is in the ext folder.

'client' => [
'html' => [
'common' => [
'baseurl' => 'packages/tulparstudyo/shop/themes/frigian' ,
'template' => [
'baseurl' => public_path( 'packages/tulparstudyo/shop/themes/frigian' ),
],
],
],
],
These settings are part of the ./config/shop.php file and I think Laravel doesn't offer a way to overwrite them in your own extension so you have to document it somewhere for the users.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply