Skip to content
mtwebit edited this page Dec 30, 2019 · 8 revisions

How to use this module

1. Installation

Install ProcessWire, then Tasker and this module into site/modules.
Enable Tasker, TaskerAdmin, DataSet and the appropriate DataSet import module. They will create the necessary fields and templates. Review them and make changes if needed.
Check the modules' config pages, make the necessary changes and save them. E.g. check Tasker's wiki and specify the task executor.

2. Testing

Enable debugging in Tasker.
Create a new DataSet page and upload a CSV file to it.
Add the following rule to the file's description field:

JSON{
  "name": "Testing the import",
  "input": {
    "type": "csv",
    "delimiter": ",",
    "header": 1,
    "limit": 10
  },
  "fieldmappings": {
    "title": 1
  },
  "pages": {
    "template": "basic-page",
    "selector": "title=@title"
  }
}

After saving the page an import link should appear below the file description.
Click on this link to create an import task for the dataset. The new task will appear as "waiting". You can activate it to be executed by Tasker using the specified execution method.
Check the task page for log messages.

Clone this wiki locally