D
D
Dmitry2018-07-31 22:24:42
1C-Bitrix
Dmitry, 2018-07-31 22:24:42

How to insert a link to Bitrix?

For example, I have a block with a video, how can I set my link to the video through the admin panel?
At the moment the code looks like this. I'm interested in what needs to be inserted into src in the code and how to display it in the admin panel? I'm new, I still don't understand

<div class="mainPublicationsVideoListOne" id="<?=$this->GetEditAreaId($arItem['ID']);?>">
      <div class="mainPublicationsVideoListOneCover">
        <div class="mainPublicationsVideoListOneCoverImage">
          <iframe width="560" height="315" src="ЧТО ТУТ ВСТАВИТЬ?" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
        </div>
      <div class="mainPublicationsVideoListOneCoverTitle"><?=$arItem["NAME"]?></div>
      </div>
      <img src="/images/style/video-sizer.png" alt=""/>
    </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2018-08-01
@Rema1ns

If the vidos is inserted in the admin panel simply by a link, then either the link is in the already set properties ( $arItem['PREVIEW_TEXT'] или $arItem['DETAIL_TEXT']), or there is some property (created), then it will be necessary to select this property in the component settings for display and display in the template

$arItem['DISPLAY_PROPERTIES']['НАЗВАНИЕ_СВОЙСТВА']['VALUE']
либо просто $arItem['PROPERTIES']['НАЗВАНИЕ_СВОЙСТВА']['VALUE']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question