Export sitemap for each tennant separately

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
AleksandarJovanovic
Posts: 54
Joined: 01 Jun 2022, 21:26

Export sitemap for each tennant separately

Post by AleksandarJovanovic » 16 Jun 2024, 13:41

Hello,

How can I create a sitemap for each tenant separately? When I use the command php artisan aimeos:jobs product/export/sitemap <site code>, it exports only for that tenant, but each time I change the <site code>, it updates the existing one. How can I create one for each tenant separately and have it work consistently?

Thank you in advance for your response.

Aleksandar

Aimeos 2024.04
Ubuntu
Php 8.2

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

Re: Export sitemap for each tennant separately

Post by aimeos » 17 Jun 2024, 22:06

You are right, that's a problem because the sitemaps are overwritten. Until it's fixed, you can extend the job controller and overwrite the "filename()" and "indexFilename()" methods here to include the site code:
https://github.com/aimeos/ai-controller ... #L289-L314
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Export sitemap for each tennant separately

Post by aimeos » 20 Jun 2024, 07:35

This has been fixed in dev-master now and will be part of 2024.07+
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply