PolloZen
PolloZen

Hi @mano I've write a plugin for import a csv file to RainLab Blog including Categories and Featured Image

You can download it, its free and look into the code for guide yourself

https://octobercms.com/plugin/pollozen-joomlacsvimport

info21551
info21551

Hi Philip,

I was hoping to read your great tutorial on Imports, but it seems the link is not working anymore. Actually it seems the whole site is offline. Would it be possible to put it up again? Thanks in advance.

Update: I think there's a problem with your website again. I hope it get's fixed because it's great!

Berend

Last updated

TheFehr
TheFehr

Update: I think there's a problem with your website again. I hope it get's fixed because it's great!

Berend

I saw that you update you answer recently so maybe you see this. Try the wayback machine they got a copy of the tutorial, simply google wayback machine and then insert the url of the tutorial.

Phil

Last updated

clearmons29123
clearmons29123

Filip Pacurar said:

Hello, I've written a new tutorial on how to use the new import and export feature of October - it's on OctoHelp

http://octo-help.com/how-to-use-the-new-import-and-export-feature-in-october/

Hi. Your tutorial url was gone. I want you to send me new url or document for exporting in backend. Thank you.

LukeTowers
ashleyignatiusyeo
ashleyignatiusyeo

Hi I've read and tried to follow the documentation to a tee on this and everything seems to load fine up till the point of actually exporting the data. That's when I run into the error below, appearing within the "Export Progress" modal:

"Call to undefined method October\Rain\Database\QueryBuilder::export()" on line 2483 of /Applications/MAMP/htdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php

Now I can see the export() method in the Backend\Models\ExportModel so I'm pretty sure my error is arising somewhere around the defining of my export model for my "Instance" model as shown below:

<?php 

class InstanceExport extends \Backend\Models\ExportModel
{
        public function exportData($columns, $sessionKey = null)
        {
            $instances = Instance::all();
            $instances->each(function($instance) use ($columns) {
                    $instance->addVisible($columns);
            });
        return $instances->toArray();
        }
}

I'm not too sure where to place this body of code though, as the documentation did not specify if it should be in it's own file? what should the file be called? or where should it be placed?

I hope that is enough information to define the issue that I am facing and hopefully be able to derive a solution to it.

Thanks!

21-26 of 26