A
A
Arthur Levenson2021-07-13 12:24:59
MODX
Arthur Levenson, 2021-07-13 12:24:59

How to display videoGallery?

installed videoGallery, created tv for it. tell me how to display this tv on the page? via pdoResources or getResources? Can't find detailed information about this plugin

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
igumenov, 2021-07-14
@igumenov

https://modstore.pro/packages/photos-and-files/vid...

{set $video_json = json_decode($_modx->resource.video, true)}
{if $video_json.video?}
  <div><img src="{$video_json.image}" /></div>
  <iframe width="860" height="650" src="{$video_json['video']}" frameborder="0" allowfullscreen></iframe>
  {if $video_json.title?}
    <div><b>Название:</b> {$video_json.title}</div>
  {/if}
  {if $video_json.desc?}
    <div><b>Описание:</b> {$video_json.desc}</div>
  {/if}
{else}
  Видео нет
{/if}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question