mod_import_csv

Module which adds “import CSV” button to the admin status screen.

The dropbox folder of the site is also watched for CSV or XLSX files.

To determine whether it can import a file, it uses a notification:

#import_csv_definition{basename, filename}

If the notification is not returning anything, it tries to map the columns found in the first row of the CSV file to resource column names. CSV/XLSX import module for admin-driven and watched-folder data imports.

Accepted Events

This module handles the following notifier callbacks:

  • observe_admin_menu: Add menu item to 'Content' admin menu using z_acl:is_allowed.

  • observe_dropbox_file: Handle a drop folder file when it is a tsv/csv file we know using z_acl:user.

Delegate callbacks:

  • event/2 with submit messages: csv_upload.

Edit on GitHub

Models

import_csv_data

Model to track resources imported from CSV and XLSX files.

Dispatch rules

dispatch

Dispatch rules Name Path Resource Args admin_import [“admin”,”import”] controller_admin [{template,”_admin_import.

Referred by

All dispatch rules

All the dispatch rules from all modules. For a background on dispatch rules, see The URL dispatch system.