Modifying component HTML

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!
goranrados
Posts: 1
Joined: 26 Jan 2018, 12:39

Modifying component HTML

Post by goranrados » 27 Jan 2018, 11:48

I want to modify the HTML of basket/mini component and I'm not sure what is the correct approach. I have 3 solutions on my mind:

1. Change the default template of component (basket/mini/body-default.php)
2. Change the template file in configuration (client/html/basket/mini/standard/template-body = basket/mini/NEW-FILE.php)
3. Create a new component

Thanks in advance,
using Laravel 5.5, Aimeos 2018.01.03, PHP 7.1.9

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Modifying component HTML

Post by Travin » 27 Jan 2018, 13:03

Hello!
You need to create extension first. Please look at these links
https://aimeos.org/docs/Developers/Create_an_extension explanation
https://aimeos.org/developer/extensions/ one-click builder
There will be copies of core files. Then you can modify existing files of extension or remap it at configuration as you wrote.
Good luck!
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

Post Reply