Objects from external sources
Note
For information on working with objects from external sources in the new editor, see Embedded object.
Warning
Dynamic blocks are fully compatible with dynamic tables and any pages created in the legacy editor.
Creating new pages in the legacy editor is no longer possible.
However, you can easily convert any existing pages from the legacy editor to the new editor format. For more information, see Switching a page to the new editor format.
You can use the iframe
block to embed other pages, objects, audio files, or video clips from external sources, such as YouTube, Vimeo, and Coub.
Triggering the block
{{iframe src="http://<page_address>" width=700px height=600px frameborder=0 scrolling=no}}
Block parameters
Parameter | Description |
---|---|
src |
This is a required parameter. Contains the address of the object. |
width |
Indicates the iframe width in pixels or as a percentage of page width. |
height |
Indicates the iframe height in pixels. |
frameborder |
Indicates whether the iframe has a border. |
scrolling |
Indicates whether the iframe has scrollbars. |
allowfullscreen |
Enables full-screen for the iframe. Always true . |
Adding a video or audio
To embed a video or audio to the page, use the {{iframe}} dynamic block. It allows you to embed media from external sources, such as Yandex Music, Vimeo, and YouTube.
-
Open the page and click Edit.
-
Embed the code of the dynamic block with a media link on the page. Use a link for embedding on external resources. These links are usually referred to as the "Embed code" or "HTML code".
Tip
-
To embed a YouTube video, use a link that looks like this:
https://www.youtube.com/embed/oCRQj_zyPjk
To obtain this link, select Share → Embed under the YouTube video and copy the
src
parameter value. -
To embed a soundtrack from Yandex Music, use a link that looks like this:
https://music.yandex.ru/iframe/#track/71263/419460
To obtain this link, select Share → HTML code in the soundtrack menu and copy the
src
parameter value.
Example of a dynamic block with a video:
{{iframe src="https://player.vimeo.com/video/207028770" width="640" height="300" frameborder="0" allow="autoplay; fullscreen" allowfullscreen}}
Example of a dynamic block with a soundtrack:
{{iframe frameborder="0" style="border:none;width:100%;height:180px;" width="100%" height="180" src="https://music.yandex.ru/iframe/#track/71263/419460"}}