V
V
Vlad Gromov2019-04-21 15:32:25
1C-Bitrix
Vlad Gromov, 2019-04-21 15:32:25

How to create a script that receives website news and writes it to the Bitrix infoblock?

Comrades, please help!
Task, there are two sites:
1) On the first site:
install 1C: Bitrix, create a news section in any design.
The news list should display: small image, announcement text, date, news category.
In detailed news: large image, gallery of additional images, news text, date, category.
2) On the second site:
install 1C: Bitrix, create a script that receives news from the first site and writes them to the 1C Bitrix info block, the script must be able to add new emerging news and update old ones.
The method of receiving news from the first site is any, except for the direct connection to the database of the first site.
3) Additional task: come up with several fundamentally different ways to implement the import script from paragraph 2.
Completed the first part, exported via RSS to another site, but now the problem is that you need to not only display news via RSS, but also add using the script them to the infoblock of the second site.
How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2019-04-26
@AlexeyCaTHaR

Unload news for the last month into a json file with the required fields.
Hang it on adding e-that IB.
on the second site, make an agent that looks at json and determines by the id of the news whether it is loaded or not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question