# Video block doesn't show up

**URL:** <https://forum.getkirby.com/t/video-block-doesnt-show-up/25768>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 21, 2022, 4:10am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768 "2022-06-21T04:10:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [June 21, 2022, 4:10am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/1 "2022-06-21T04:10:58Z")

</div>

blueprint:

```auto
fields:
    titel:
      label: Filmtitel
      type: text
    videos:
      type: blocks
      fieldsets:
        media:
          type: group
          fieldsets:
            # - image
              - video
    description:
        label: Beschreibung
        type: text

```

template:

```auto
    <h2><?= $page->titel()->html() ?></h2>
    <div>
        <?= $page->videos()->toBlocks() ?>
    </div>
    <p><?= $page->description()->html() ?></p>

```

The title field and the description render just fine, but the video embed doesn’t.

I actually just need a simple video field for youTubes and Vimeos, but I couldn’t find one in the docs, so I took a block with just a video block.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 21, 2022, 6:35am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/2 "2022-06-21T06:35:24Z")

</div>

> [@Ndugu](#):
>
> ` <?= $page->videos()->toBlocks() ?>`

That is because `videos` is a native Kirby method ([$page-\>videos() | Kirby CMS](https://getkirby.com/docs/reference/objects/cms/page/videos)).

See also naming fields: [Fields | Kirby CMS](https://getkirby.com/docs/guide/blueprints/fields#naming-fields)

You can get the field via

```auto
<?= $page->content()->get('videos')->toBlocks() ?>

```

Or rename your field to something else.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [June 21, 2022, 11:09am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/3 "2022-06-21T11:09:47Z")

</div>

Yes, it was the field name. I thought the forbidden name was “video”.

But still, what is the blueprint field type for video if it isn’t a block? Can I only have a blocks field to have a video field? I couldn’t find it in the docs.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 21, 2022, 11:13am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/4 "2022-06-21T11:13:29Z")

</div>

You would use a files field and limit what type of files can be uploded via a file blueprint (using the `accept` option (if you want to use a video file).

If you only want to use a video url, you can use a `url` field, that’s what’s used in the video block as well. There is no `video` field type.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [June 21, 2022, 11:20am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/5 "2022-06-21T11:20:30Z")

</div>

Maybe there should be one?

A video embed isn’t really a file that you upload to a site, thats why I thought that would be the wrong way to do it. The files field I think of as something to upload and then present it to the user like an image or for downloading it like a PDF, but a video embed feels different to me. But maybe that’s really just me.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 21, 2022, 11:29am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/6 "2022-06-21T11:29:34Z")

</div>

I didn’t say you should upload a video. As I said, use a `url` field to put your video url into.

This is the video block blueprint:

```auto
name: field.blocks.video.name
icon: video
preview: video
fields:
  url:
    label: field.blocks.video.url.label
    type: url
    placeholder: field.blocks.video.url.placeholder
  caption:
    label: field.blocks.video.caption
    type: writer
    inline: true

```

It uses a `url` field as well.

If you want, you can add a validator to the field that checks for youtube/vimeo urls.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [June 21, 2022, 11:36am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/7 "2022-06-21T11:36:20Z")

</div>

Äh… right.

PS: That video blocks blueprint I got from the starter kit that I used this time.

---

<div class="post-metadata">

**Author:** ![Ndugu](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Ndugu](https://forum.getkirby.com/u/Ndugu)\
**Post date:** [September 4, 2023, 3:32am UTC](https://forum.getkirby.com/t/video-block-doesnt-show-up/25768/8 "2023-09-04T03:32:30Z")

</div>

Aaaand more than a year later I completely forgot that ‘videos’ is a native Kirby Method, so I made the same mistake just simply again. Searched the forum and found the solution in my own question from last year. Boom, its so easy (without a brain).
