A
A
Anto2020-05-23 22:56:23
1C-Bitrix
Anto, 2020-05-23 22:56:23

How to withdraw a Yandex map through the infoblock?

Good evening!

Tell me, I created a property and an HTML/Text infoblock, I want to write in it the code of the map created in the Yandex Map Constructor (why is it so, you need to display a map with lines and points on the site), but now it puts the Juda code, it is displayed in text but the map is not displayed. I output like this <?=$arResult[PROPERTIES][ATT_MMAS][VALUE][TEXT];?> Or maybe there is another way to display this card on the page with detailed news?
Example
5ec98086befc7663400766.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
scottparker, 2020-05-23
@scottparker

there is also a property type - map

S
smilingcheater, 2020-05-24
@smilingcheater

Print and look at the $arResult[PROPERTIES][ATT_MMAS] variable - there will be something like ~VALUE or ~TEXT - the value bitrix in html fields is escaped before output, for safety, but the original value is left in the field with a tilde (~) in early

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question