Answer the question
In order to leave comments, you need to log in
Has anyone made share buttons on social networks on a Bitrix website?
Good day.
There is news that has the following properties:
"Orientation to repost" - REPOST - file property.
"Signs" - PRIMETY - text property
In general, I decided to connect Share the Yandex block.
on the detailed page in the template I output:
<? $URLRepost = CFile::GetPath($arResult["PROPERTIES"]["REPOST"]);?>
Поделиться в соцсетях:
<script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
<script src="https://yastatic.net/share2/share.js"></script>
<div class="ya-share2" data-description="<?=$arResult['PROPERTIES']['PRIMETY']["VALUE"]['TEXT'];?>" data-services="vkontakte,facebook,odnoklassniki,whatsapp" data-title="<?=$x?>" data-access-token:facebook="fb-token" data-image="<?=$URLRepost;?>"></div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question