Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1967 Представления

Hello,

First of all, excellent training! I have a request for a case very similar to the "Secure Places" solutions. The case is that for each location there is a YouTube video showing the place. 

The code of the YouTube video will be stored in a text field "youtube_code" i.e. u4uJTeqskxc

Then in a new tab called "Video" I would like to have an iframe with the video. I managed to create the tab and the iframe using the Developer Mode/Edit View: Form


<page id="video_tab" string="Video" name="video_youtube" attrs="{}">
     <group id="elo_tab_entry_group">
         <form string="Embedded Webpage" version="7.0"  edit="false">
          <iframe width="560" height="315" src="https://www.youtube.com/embed/u4uJTeqskxc" frameborder="0"></iframe>
        </form>
    </group>
</page>

My question is: how to make the video url dynamic to read the code from the text field.

Something like:

<iframe width="100%" height="1000" src="https://www.youtube.com/embed/{{youtube_code}}" frameborder="0"></iframe>

Thank you very much in advance.


Rodny =)

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июл. 24
1203
0
июл. 24
727
2
июн. 24
29566
3
мая 24
2801
2
нояб. 23
36487