aimeos / aimeos-laravel

Laravel ecommerce package for ultra fast online shops, scalable marketplaces, complex B2B applications and #gigacommerce
https://aimeos.org/Laravel
MIT License
7.26k stars 1.05k forks source link

Aimeos - CMS Page - Home: Not rendering CMS page content #443

Closed woodwardmatt closed 2 years ago

woodwardmatt commented 2 years ago

Environment

  1. Version = 2020.10
  2. Operating system = WSL, Windows -> Docker: Ubuntu

I have a working install of Aimeos-Laravel. I notice that the Homepage CMS content is not being rendered despite the route being in place for this (in routes/web.php)...

Route::get('/', '\Aimeos\Shop\Controller\CatalogController@homeAction')->name('aimeos_home');

... and having a cms page with the url of "/" that is enabled.

The site loads / function correctly otherwise. Any advice?

Cyber-Devs commented 2 years ago

Environment

  1. Version = 2020.10

  2. Operating system = WSL, Windows -> Docker: Ubuntu

I have a working install of Aimeos-Laravel. I notice that the Homepage CMS content is not being rendered despite the route being in place for this (in routes/web.php)...

Route::get('/', '\Aimeos\Shop\Controller\CatalogController@homeAction')->name('aimeos_home');

... and having a cms page with the url of "/" that is enabled.

The site loads / function correctly otherwise. Any advice?

you have to add “cms/page" component to config/shop.php on home-page....

aimeos commented 2 years ago

@Cyber-Devs Thanks for the solution!

We've updated the README of the extension accordingly: https://github.com/aimeos/ai-cms-grapesjs#laravel

woodwardmatt commented 2 years ago

Perfect! That's sorted it! Thank you both for your efforts and support :)

woodwardmatt commented 2 years ago

Just a query in relation to this. I have two environments, in one I had to add in the above fix for the cms content to work and in the other it seemed to work anyway (the shop.config hasn't got the cms/page added). Is there a setting elsewhere that controls the cms page content showing too?

Just trying to make sure I'm across how this is controlled.

aimeos commented 2 years ago

If you install the Aimeos distribution (aimeos/aimeos), then it's preconfigured.