File names are automatically hyphenated.
I want to put the file url inside the <source> html.
However, the file name does not appear as a normal url.
(For example: http://mydomain.com/file.mp4)
Did I do something wrong?
When I put it in the cover, it worked normally.
blueprint
cover: type: files multiple: false videobox: label: Video type: files multiple: false
templates
<?php if ($cover = $new->cover()): ?> <div class="videobox"> <video controls preload="none" poster="<?= $cover->url() ?>"> <?php if ($videobox = $new->videobox()): ?> <source src="<?= $videobox->url() ?>" type="video/mp4"> <?php endif ?> </video> </div> <?php endif ?>