I’ve created virtual pages from the YouTube-API and I would like to display the thumbnails in the control panel.
At the moment, I have this:
foreach($results as $key => $video) {
$pages[] = [
'slug' => $video->contentDetails->videoId,
'num' => $key+1,
'template' => 'video',
'model' => 'video',
'content' => [
'image' => $video->snippet->thumbnails->default->url,
'title' => $video->snippet->title
]
];
}
And now I’d like to use “page.content.image” as image source.
I know there’s a way to create virtual files ( Virtual Files for page? - Kirby 3 / Solved - Kirby (getkirby.com), but I just want to display the thumbnails.