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

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

An external feed delivered a resource. First handler can import it. Return:: {ok, m_rsc:resource_id()} , {error, Reason} , or undefined

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

Notifications

observe_session_context/3

Refresh the context or request process for the given request or action

Notifications

observe_user_context/3

Set #context fields depending on the user and/or the preferences of the user.

Notifications

observe_tkvstore_get/2

Get a value from the typed key/value store

GitHub © 2026 Zotonic