Hide youtube player if no video is given
This commit is contained in:
parent
805a773357
commit
e11c020ed4
1 changed files with 3 additions and 1 deletions
|
@ -257,7 +257,9 @@
|
|||
"condition": "_part_of_walking_routes~*"
|
||||
},
|
||||
{
|
||||
"condition": "_video:id~*",
|
||||
"freeform": {
|
||||
"key": "_video:id"
|
||||
},
|
||||
"render": "<iframe style='width: 100%; height: 300px' src=\"https://www.youtube-nocookie.com/embed/{_video:id}\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue