Content Export - envris/White-Label-Help-Wiki GitHub Wiki

Content Export

Content can be exported

The published content from the site can be exported as a CSV. As an authenticated user there is an additional page which appears in the Content menu which will allow you to download the published site content as a single file in CSV format.


Detailed description

An authenticated user can visit the "Content -> Content Export" page using the site menu. This page will display a paginated list of all the published content on the site. There is a Content Type select element which can filter the list by content type. There is a "Download CSV" button at the bottom of the page which will download all pages of content for the content type that is currently selected.


Technical description

There is a custom view that will export all published content from the site. The content is displayed as a paginated table with a list of fields for all of the available content types. If a content type does not have a value for a field it will be empty.

The view is available for authenticated users at: "Content -> Content Export", or directly at /export/content.

This view makes the content available as a paginated HTML table of data, as well as a list of all the content in JSON format. There is a button on the table view that will fetch all the JSON data and convert it to a "CSV format" file which will be downloaded and saved.