no that's fluent for SS3. fluent for ss4 has another schema but I already fixed the problem with the hidden import form. I can see it now.

I doubt Mr Cow is around at the moment, since it's very late where he is!

Does this help you at all? https://github.com/tractorcow-farm/silverstripe-fluent/issues/63 (edited)

Attachments:
nbenn

Hey all! I am trying to implement the CSV import. This is my ModelAdmin

  1. use SilverStripe\Admin\ModelAdmin;
  2. use SilverStripe\Dev\CsvBulkLoader;
  3.  
  4. class ToolModelAdmin extends ModelAdmin {
  5.  
  6. private static $url_segment = 'tools';
  7. private static $menu_title = 'Tools';
  8. private static $menu_icon = 'mysite/icons/bitsies/TrafficCone.png';
  9. private static $menu_priority = -0.2;
  10.  
  11. private static $managed_models = [
  12. 'Tool', 'Icon'
  13. ];
  14.  
  15. private static $model_importers = [
  16. 'Tool' => CsvBulkLoader::class
  17. ];
  18. }

I have implemented fluent (https://github.com/tractorcow-farm/silverstripe-fluent).. The Problem is, that I dont see the import form in the popup when i click on "import CSV" in the CMS Model (see screenshot)

I implemented the CsvBulkLoader the same way in an other project without fluent, and it works fine.. so maybe i am missing something or it doesn't work with fluent? Hope someone can help me I am using SilverStripe 4.1.2 (edited)

Attachments:
tractorcow-farm/silverstripe-fluent
tractorcow-farm/silverstripe-fluent
tractorcow-farm/silverstripe-fluent
tractorcow-farm/silverstripe-fluent
tractorcow-farm/silverstripe-fluent

Hey all, I am trying to implement the CSV Import. This is my ModelAdmin

  1.  

I merged it, just to prove i'm not altogether gone

👍 (1)