There is a task to fill the positions of the goods added to the site built on the CMS bitrix. Positions with titles have already been created on the site, but they do not have descriptions and pictures. I have PDF files that I use with Java tools to image and description. Is there an API or any other way to update the content on the site? the simpler the better.
- Yes, you can write directly to the database from pdf. I did just that, but the source was not a pdf but a SOAP service. - Dmitry V.
- The built-in bitrix api worked too long, and the specific answer to your question will depend greatly on how this “content” looks like in bitrix. - Dmitry V. Nov.
|
1 answer
- API is. Well, that is, it is so called .
- In fact, this is documentation on working with classes and methods of the Bitrix engine, which allows you to write your own scripts that interact in one way or another with the information in the database.
- If you need to update not very often not a lot of goods (up to 100 items), then the API will suit you.
- You will need to update several parameters of the information block element that represents the product.
- You also need to save the image via
CFile::MakeFileArray- this is easy, but I recommend to pre-process it.
- If you need to update a lot of products often, then, unfortunately, this is simply not solved.
- It is necessary to study the structure of the information block module tables.
- As well as the structure of the tables that
CFile
Good luck in this difficult matter.
|