How do I extend and override list.blade.php layout

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!
h2jose
Posts: 8
Joined: 04 Jun 2018, 14:45

How do I extend and override list.blade.php layout

Post by h2jose » 05 Jun 2018, 01:50

Hi, i want to modify:

Code: Select all

vendor/aimeos/aimeos-laravel/src/views/catalog/list.blade.php
i need add two includes:

Code: Select all

@section('aimeos_body')

@include('template.include.slider')
@include('template.include.banner-home-1')

<?= $aibody['catalog/lists'] ?>
How can i customise this layout correctly out of core folder?

Thanks in advance

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

Re: How do I extend and override list.blade.php layout

Post by aimeos » 05 Jun 2018, 07:13

You can overwrite package views in the ./resources/views/ directory. This is a standard Laravel feature:
https://aimeos.org/docs/Laravel/Adapt_p ... he_package
https://laravel.com/docs/5.6/packages#views
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

h2jose
Posts: 8
Joined: 04 Jun 2018, 14:45

Re: How do I extend and override list.blade.php layout

Post by h2jose » 05 Jun 2018, 10:16

I had not seen that section, cool, thank you (Y)

Post Reply