Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question