Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#3999 by 27bit.ru
06 Mar 2017, 02:10
Hey. Is it possible to change the template of the exported file. Add any data, or delete any fields. Is it possible to do this using settings, or by changing the file?
Last edited by 27bit.ru on 06 Mar 2017, 15:55, edited 1 time in total.
#4004 by 27bit.ru
07 Mar 2017, 14:54
aimeos wrote:You can copy and modify this template in your own extension:
https://github.com/aimeos/ai-controller-jobs/blob/master/controller/jobs/templates/product/export/items-body-default.xml


Thank you. Everything worked out. I just do not understand how I can display a link to the product page, and the catalog id, as well as the label of the catalog. Is it possible to add them to the export xml file?
#4007 by aimeos
08 Mar 2017, 10:26
For links, you can use the "$this->url()" view helper like there:
https://github.com/aimeos/ai-controller-jobs/blob/master/controller/jobs/templates/product/export/sitemap-items-body-default.xml#L22

The catalog data isn't available by default. You have to create your own class extend from the "Standard" class and overwrite the export() method:
https://github.com/aimeos/ai-controller-jobs/blob/master/controller/jobs/src/Controller/Jobs/Product/Export/Standard.php#L273