Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Adding Custom CsvBulkUploader to Model Admin


Go to End


2 Posts   1348 Views

Avatar
justin_t_brown

Community Member, 22 Posts

27 May 2017 at 5:54am

Edited: 27/05/2017 5:55am

Hi, after looking at the documentation for the built-in CSV importing, it's still not clear to me how to add a custom CsvBulkUploader to ModelAdmin. I see how you can easily add the default uploader and how you can create a custom controller for importing but it's not clear to me how you would add this to a ModelAdmin. I've spent the morning looking through Stack Overflow and the SS community forums, but haven't been able to find anything yet. Any direction would be greatly appreciated!

Avatar
justin_t_brown

Community Member, 22 Posts

1 June 2017 at 2:33am

Edited: 01/06/2017 2:35am

I figured it out. Long answer is here.

Short answer is that you can create a custom uploader by extending off of CsvBulkLoader and then simply declare it in your ModelAdmin within $model_importers.