D
D
Dorick582018-04-30 10:40:36
1C-Bitrix
Dorick58, 2018-04-30 10:40:36

Set comments for a paragraph on cms 1C-Bitrix?

Tell me how to implement paragraph comments, as here - https://jusnaturale.ru/osmotr-i-dosmotr/ ( prntscr.com/jbv0n3, prntscr.com/jbv0qa) on 1s-bitrix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-05-10
Madzhugin @Suntechnic

How are your paragraphs presented?
I would do this on the basis of the usual components of comments based on the forum, but for this the paragraph needs to be somehow represented as a data object so that it has some id by which it would be possible to associate its comment thread with it. The simplest method "on the forehead" is to store each paragraph separately as an IB element, but this is terribly inconvenient. I would do this - let the paragraphs be just paragraphs (tag p) in the html field DETAIL_TEXT element IB, then, already on the client, they can be assigned using js id based on the id element IB and the number of the paragraph in the text.
I would write this id to some data-paraid attribute and, again, js would add to all elements with the data-paraid attribute the ability to open a popup with an iframe, in which there would be a normal comment component.
Sort of like that, in a nutshell.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question