Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Notifications
  • Reference
  • Backend developer
  • Import and migration
  • Notification
  • Import
  • Structured data

observe_import_csv_definition/2

Find an import definition for a CSV file by checking the filename of the to be imported file.

Type:

first

Return:

#import_csv_definition{} or undefined (in which case the column headers are used as property names)

#import_csv_definition{} properties:

  • basename: binary
  • filename: file:filename_all()

Edit on GitHub

Related documentation

Models

import_feed

Discover, preview and manage the feeds imported by mod_import_feed .

Notifications

observe_rsc_import_done/2

A resource import has completed. The options describe this particular import; recursively imported resources can have different options.

Notifications

observe_rsc_import_fetch_result/3

Enrich the decoded resource-export envelope with import metadata. The response headers belong to final_url , after any redirects. Return…

Notifications

observe_rsc_import_fetch/2

Fetch the data for an import of a resource. Returns data in the format used by m_rsc_export and m_rsc_import. Either returns the JSON data

Notifications

observe_import_resource/2

Import a prepared external resource instead of its default importer.

Models

rsc_import

Import model for resources exported by m_rsc_export .

Notifications

observe_survey_result_columns/3

Add header columns for export. The values are the names of the answers and the text displayed above the column. The text format is for a…

Notifications

observe_media_import_medium/2

Notification to import a medium record from external source. This is called for non-file medium records, for example embedded video. If the…

Notifications

observe_tkvstore_put/2

Put a value into the typed key/value store

GitHub © 2026 Zotonic