change the content helper path

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!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

change the content helper path

Post by ahmed31916 » 26 May 2022, 09:03

Hello,

This helper, goes to the route "aimeos/path/to/image".

Code: Select all

$this->content('path/to/image')
How to remove "aimeos" keyword from the path?

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

Re: change the content helper path

Post by aimeos » 27 May 2022, 10:17

Overwrite the "fs" and "fs-media" file systems in your config/shop.php and adapt the "baseurl" value:
https://github.com/aimeos/aimeos-larave ... hp#L53-L64
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: change the content helper path

Post by ahmed31916 » 27 May 2022, 12:08

when I tried to override on the "resource" in the "config/shop.php", I got this error:

Code: Select all

An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)

full trace:
https://flareapp.io/share/LPdoNdYm#F81

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

Re: change the content helper path

Post by aimeos » 29 May 2022, 07:11

Configuration in ./config/shop.php replaces the whole default configuration so you have to add the complete config and change the parts you need:
https://github.com/aimeos/aimeos-larave ... p#L36-L105
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply