I would like to include the ability to export all nodes of a specific doctype to either csv or excel/xml
at the moment I'm not really fussed what format I export to.
Aspose used to do a good job of this, but it doesn't seem to work with v7.
Can anyone suggest how best I could go about building this functionality in v7?
Just to clarify, I want export nodes of a specific doctype, along with all of their field data, e.g. if I'm exporting blog post nodes, I want to see the summary, date, body text, tags etc in the csv.
If you're rolling your own then it should be very simple to request all content and all properties, and then output it with something like this CsvAction:
https://gist.github.com/simonech/4104490
I don't think I can use Linqpad oruSync as the exports need to be run by a user via the umbraco backend.
Generating the export is the easy bit really, but I've not messed with adding new sections to the backend since it all went to Angular, so I'm not 100% sure how you do it.
You don't need to create a whole new section, you can just add a dashboard control. They're as easy as creating a user control (.ascx - yes they still work somehow) with a button in it.
Exporting node information from Umbraco 7
I would like to include the ability to export all nodes of a specific doctype to either csv or excel/xml
at the moment I'm not really fussed what format I export to. Aspose used to do a good job of this, but it doesn't seem to work with v7.
Can anyone suggest how best I could go about building this functionality in v7?
Just to clarify, I want export nodes of a specific doctype, along with all of their field data, e.g. if I'm exporting blog post nodes, I want to see the summary, date, body text, tags etc in the csv.
Hi Shaun,
Did you find solution?
I think the best way is to create your own controller for that, can't find any package with csv export feature.
Thanks,
Alex
Hi Alex
I think you're right. I'm just reading up now on how best to "roll my own".
The tricky bit seems to be how I can trigger my new controller from the umbraco backend.
Hi Shaun,
You can add some button to Umbraco backend or link to your controller.
Thanks
A few ideas:
Thanks all
I don't think I can use Linqpad oruSync as the exports need to be run by a user via the umbraco backend.
Generating the export is the easy bit really, but I've not messed with adding new sections to the backend since it all went to Angular, so I'm not 100% sure how you do it.
Hi Shaun,
You can create your own section, look docs - https://our.umbraco.org/documentation/extending/
Or add your button where you want, where do you want?
Thanks
You don't need to create a whole new section, you can just add a dashboard control. They're as easy as creating a user control (.ascx - yes they still work somehow) with a button in it.
That dashboard control sounds just the ticket! I'll give that a go. Thanks!
is working on a reply...