How do I edit privacy and terms pages?

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!
thepurpleblob
Posts: 20
Joined: 22 Oct 2020, 15:39

How do I edit privacy and terms pages?

Post by thepurpleblob » 31 Oct 2020, 16:36

Confused again.

I changed the link in app.blade.php to /privacy and it's now clickable and shows the page 'Privacy policy page'. Great.

However, the source of this page appears to be located at vendor/aimeos/aimeos-laravel/src/views/page/privacy.blade.php. Which is not in the /ext directory like other site pages. So, how do I "override" that page and provide my own content?

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

Re: How do I edit privacy and terms pages?

Post by aimeos » 02 Nov 2020, 10:23

Standard Laravel blade templates of the package can be overwritten by Laravel means. The documentation is a bit hidden but available here:
- https://aimeos.org/docs/latest/laravel/ ... he-package
- https://laravel.com/docs/master/packages#views

You have to copy the files you want to overwrite from:
./vendor/aimeos/aimeos-laravel/src/views/
into this directory of your application:
./resources/views/vendor/shop/

Keep the sub-directory structure below if there's any.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

thepurpleblob
Posts: 20
Joined: 22 Oct 2020, 15:39

Re: How do I edit privacy and terms pages?

Post by thepurpleblob » 04 Nov 2020, 20:34

Great - got it thanks :)

Post Reply