Export sitemap for each tennant separately
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- AleksandarJovanovic
- Posts: 54
- Joined: 01 Jun 2022, 21:26
Export sitemap for each tennant separately
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
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
Re: Export sitemap for each tennant separately
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
https://github.com/aimeos/ai-controller ... #L289-L314
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Export sitemap for each tennant separately
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,
give us a star
If you like Aimeos,
