R
R
RushV2021-02-12 17:32:21
MODX
RushV, 2021-02-12 17:32:21

How to display migx page in fenom?

Hello!
How to display fields in migx page in fenom?
On the Internet, I searched everything, everything that I applied does not work.
Tried like this, and it doesn't work.

{set $video = json_decode(91 | resource : "main_video_materials", true)}
               {if $video}
                  {foreach $videos as $video}
                        {$video.video_url_migx}
                       {/foreach}
{/if}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arthur Sh, 2021-02-12
@Shev_Art_V

{set $video = 91 | resource : "main_video_materials" | fromJSON}
               {if $video}
                  {foreach $videos as $video}
                        {$video['video_url_migx']}
                       {/foreach}
{/if}

A
Alexey Golyagin, 2021-02-14
@webrevenue

{set $rows = 91 | resource : 'main_video_materials' | fromJSON}
{foreach $rows as $row}
<video>
 <source src="{$row.video_url_migx}">
</video><
{/foreach}

More ready -made MIGX examples and documentation .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question