Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#373 2024-10-24 19:40:25

etc
Developer
Registered: 2010-11-11
Posts: 5,210
Website GitHub

Re: etc_query: all things Textpattern

Hi Yiannis,

Try adding &format=json to <txp:yield name="media" />, like in

<txp:etc_query url='https://www.youtube.com/oembed?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiwGFalTRHDA&format=json'
    query="." markup="json">
   	<img src="{thumbnail_url?}" width="{thumbnail_width?}" height="{thumbnail_height?}" class="grid_24" alt="{description?}">
    		{description?}
</txp:etc_query>

Offline

#374 2024-11-01 16:54:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: etc_query: all things Textpattern

Hi Oleg,

That did it!! Thanks so much!


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB