Luke Towers
802d8c8e09
Temporary workaround until the L6 upgrade can be merged in to use league/csv >= 9.1
2020-03-31 09:53:35 -06:00
Fl0Cri
bd2a774a58
Add UTF-8 BOM when exporting with useList option ( #4873 )
...
Same as #1958 but when using the list controller without an ExportModel (with `useList` in the export options)
2020-03-26 13:17:51 -06:00
Robin Bonnes
9145955978
Adds the ability to override the column header label in import/export. ( #4737 )
...
Now we can use the `backend.list.overrideHeaderValue` event also in the import/export.
2019-12-10 20:06:10 +11:00
Luke Towers
9fa7cbf70e
Hide backend controller behavior public methods from controller actions.
...
Fixes #3762 , replaces #3764
2019-04-19 14:01:01 -06:00
Alexander Guth
b3eb95bb62
Make default format options in ImportExportBehaviour configurable ( #4200 )
...
Credit to @alxy.
If the default format mode is selected, there is no chance to configure the format options for delimiter, enclosure, escape and encoding. This considers a new config file item `defaultFormatOptions` and falls back to `null` if it is not specified.
To keep things consistent, the old default values remain untouched.
2019-04-01 13:00:41 -06:00
Samuel Georges
5190c8177b
Avoid terminating the app using exit() or die()
...
Refs #3783
Refs #3746
2019-03-29 07:10:07 +11:00
fansaien
8a60d3c19a
Fire backend.list.extendRecords event during export useList ( #4148 )
...
Provides an opportunity to modify and / or return the $results collection object before the controller exports it. Credit to @fansaien
2019-02-19 17:14:32 -06:00
Ben Thomson
63dfb7fad3
Replace deprecated prepareModel call in ImportExport behavior
2018-12-30 16:35:17 +08:00
Nathan van der Werf
fbca3bea92
Remove redundant variables
2018-08-15 19:23:12 +02:00
Nathan van der Werf
62c59a4903
Refactor ternary operators to null coalescing operators
2018-08-15 19:15:13 +02:00
Luke Towers
8a5d0c3b13
Correct row numbers displayed in the import result form ( #3136 )
...
* Add support for a source index offset
Improves the reporting of errors in the importing process by getting the correct offset for the displayed row where the error took place.
* Add the source index offset to the row number
Refs ce6df84b04
2017-10-15 13:45:35 -06:00
Quezler
cc17b679f1
Code dusting ( #2826 )
...
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges
330a41f39c
Improve form controller docs
2017-03-23 08:48:26 +11:00
Samuel Georges
b841f9e066
{@inheritDoc} -> @inheritDoc
2017-03-16 06:26:14 +11:00
Samuel Georges
29040b416c
Allow redirect: false on importExportController
...
Implement getFieldName() method
2016-11-28 07:50:06 +11:00
Samuel Georges
57b10704ce
Support for overriding list views
...
For consistency, entry partial for controller behaviors should be called "container"
Added addViewPath() method to ViewMaker
Remove "fa" from icon docs (not necessary)
Fixes #2439
2016-10-29 14:10:21 +11:00
Samuel Georges
19c3c19a00
Added extended useList options, including raw output
2016-10-06 18:44:26 +11:00
Samuel Georges
d7b9b4f65e
Fixes vague error when attribute is not fillable
...
Previously an error was being thrown with just the attribute name, not helpful at all.
Fixes #2302
2016-08-13 10:48:52 +10:00
Samuel Georges
e52fa7bd33
Compat with CSV v8
2016-04-28 06:39:35 +10:00
Samuel Georges
a548d6ee56
Merge remote-tracking branch 'remotes/origin/stable' into develop
...
Conflicts:
modules/backend/lang/en/lang.php
modules/backend/lang/fr/lang.php
2016-04-01 13:00:32 +11:00
Samuel Georges
a035acdc2c
Tidy up some logic, restore firstRowTitles setting
...
Refs #1856
2016-03-26 14:10:05 +11:00
Jérémy Gaulin
2a60e34558
Import options to configure the CSV reader + patch to prevent unfriendly error to be thrown due to bad import source file encoding (on AJAX request)
2016-03-26 12:54:13 +11:00
Jérémy Gaulin
8debdf023a
Externalized import/export errors strings + french translation
2016-03-20 22:22:36 +01:00
Samuel Georges
ee38c72f04
Protected properties were once [incorrectly] available
2015-08-29 20:12:55 +10:00
Samuel Georges
9ecf75307b
Add exception handling and permissions definition
2015-08-04 20:04:11 +10:00
Samuel Georges
dbac4809f6
Resurrect the list export feature - fixes #1313
2015-07-27 08:50:26 +10:00
Samuel Georges
502263e11b
Finishing import/export redirects to the defined url
2015-07-25 09:21:43 +10:00
Samuel Georges
d0742653d1
Implement exporting function modeled after import function
2015-07-23 19:44:19 +10:00
Samuel Georges
5be21f6231
Allows custom options to be specified via form fields
2015-07-22 18:30:50 +10:00
Samuel Georges
a9899ae3c1
Finish basic import workflow
2015-07-21 20:45:02 +10:00
Samuel Georges
5a40c54f3c
Add required fields + validation step, headers checkbox can be toggled
2015-07-21 07:56:55 +10:00
Samuel Georges
5e741c4c39
onImport stub
2015-07-18 17:06:09 +10:00
Samuel Georges
6ca400ca67
Import logic is getting large, give it space
2015-07-18 16:40:40 +10:00
Samuel Georges
f445b9c4ce
Implement column data sample popup
2015-07-18 16:15:17 +10:00
Samuel Georges
c7aef3c58c
Add logic to extract column headers from file
...
Move import columns to their own partials
2015-07-18 12:48:03 +10:00
Samuel Georges
694ab4a08b
Refactor and rename
2015-07-18 10:27:54 +10:00
Samuel Georges
068a977c1f
Simplify approach by using Form Widget
2015-07-18 08:51:26 +10:00
Samuel Georges
5ca55e149a
Create ImportModel base class, implement import_file uploader
2015-07-16 22:15:30 +10:00
Samuel Georges
334bf8db3c
Initial outlay of ImportExportController
2015-07-15 19:35:31 +10:00