M
M
Maxim Karpov2019-07-03 10:18:55
MODX
Maxim Karpov, 2019-07-03 10:18:55

What is the best way to store data in modx?

I understand with modx, there is a task - to add several tables with data to the system. Tables initially in CSV, in the amount of 8 pieces, each table has an average of 30-80 different fields. From the admin panel, these data do not have to be edited, they just have to act as data sources, i.e. they must be easily accessible. The data will be updated by importing new CSVs. What is the best way to implement? For each table, create your own templates and TV fields? Or just directly create your own tables with the necessary fields in the database and interact with them through xPDO?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2019-07-03
@Eridani

Attach a file to a post, or something there, so that there is a link to the file in the system, as if it were an image
Install the php excel library
Customize to your needs
Take data from csv using php excel
Parse the table by brute force and get an html table as the output
When contacting the client to the page, the most common table will be given.
If you want to upload a new CSV - delete the old one from the component and upload a new one.
Or is it still important to keep the data in the database?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question