Configuring the data importer

Learn how to set up a WEMASY importer step by step, choose the feed format and address, map fields, allow updates and deletes, and schedule runs.

This article walks you through the importer form in WEMASY: from connecting a feed to mapping its fields and setting a schedule. An importer reads a CSV, JSON or XML file from a web address and turns each entry into an item of a structure.

Before you start

Website Builder: Prerequisites

  1. Create the structure the items should go into. See Working with structures.
  2. Make sure your file is available at a public web address.

General tab: connect the feed

  1. Open the Importer from the three-dots menu next to Pages and click Create new.
  2. Type a Title and an Import Identifier.
  3. Choose the Structure Identifier: the structure that receives the items.
  4. Choose the Format: CSV, JSON or XML.
  5. Keep Source on URL and paste the address of the file in URL.
  6. Click Update to load the file.

The General tab of the importer with structure, format and feed URL

Select the items and map the fields

  1. Check the loaded Data.
  2. For JSON and XML, fill in Items Selection: the group that holds the entries, for example channel.items. Click Update.
  3. Under All Fields, scroll through the table to see the fields in the file.
  4. Under Import Fields, choose which file field fills Title, URL, Unique Identifier, Intro, Content, Image and Category.

The Unique Identifier matters most: it is how the importer recognizes an entry it imported before.

Updates and deletes

  • Allow Update: if the next feed has items that were already imported, they are updated and new ones are added.
  • Allow Delete: if an item is no longer in the feed, it is deleted from the structure.

Schedule tab: run automatically

  1. Open the Schedule tab.
  2. Switch on Enable Schedule.
  3. Choose an Interval: Hourly, Daily, Weekly, Monthly or Selected Dates.
  4. Set Repeat Every, and for weekly runs the days under Only on.
  5. Set Starts and, if needed, Ends. Times follow the time zone of your project.
  6. Check the Summary and click Save.

The Schedule tab of the importer with interval, start date and summary

Tip: switch on Allow Delete only when the feed always contains every item. A broken or partial feed would otherwise remove items from your site. Running and managing importers: Data importer for structures.

Put it to work
on your own website.

Start free with WEMASY and build your site in a few minutes.