SyliusImportExportPlugin icon indicating copy to clipboard operation
SyliusImportExportPlugin copied to clipboard

Simple string headers for generated format

Open SylvanoTombo opened this issue 5 years ago • 4 comments

Hi, Actually headers in generated file is using id dynamically, how can i use a simple string in the headers?

SylvanoTombo avatar Oct 20 '20 10:10 SylvanoTombo

Hello,

I don't think it"s configurable, it's based on https://github.com/FriendsOfSylius/SyliusImportExportPlugin/blob/7aa80b422e56c8d83918a207ba612be7f279abea/src/Exporter/ResourceExporter.php#L31

For exemple : https://github.com/FriendsOfSylius/SyliusImportExportPlugin/blob/7aa80b422e56c8d83918a207ba612be7f279abea/src/Resources/config/services_export_csv.yml#L18

oallain avatar Oct 20 '20 11:10 oallain

@oallain , Yeah but the resourceKeys must be in fields in the entity but not a simple string

SylvanoTombo avatar Oct 20 '20 13:10 SylvanoTombo

Yes, sorry. Do you want to make a Pull Request for add this feature?

oallain avatar Oct 20 '20 16:10 oallain

Hi, I think there are a function for that like "exportData" (doesn't write) but the ExportDataController use the export function by default.

SylvanoTombo avatar Oct 21 '20 06:10 SylvanoTombo