A
A
applecode2018-06-09 11:58:49
MySQL
applecode, 2018-06-09 11:58:49

How to import xls or csv into MODX?

There is a template for product cards that can be easily added to the site by creating a new document and filling in additional fields. How can you link xls or csv files to CMS so that it automatically fills in the fields by taking data from source files and creating the required number of cards?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2018-06-15
@applecode

miniShop2 has a built-in csv import tool : webcandy.ru/manuals/import-csv-minishop2 import of any resources, the main thing is to specify the required class_key.

A
Alexey Khvorostov, 2019-04-16
@Hakujin

CSV - Comma Separated Values, i.e. separated by a special character, usually a comma or a semicolon, values ​​in lines
Select from a file line by line and split into subarrays using explode. What could be easier?
Further, modx has the fromArray() function.
You can immediately fill in objects by looping through the array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question