Publish a video link per entry in Craft CMS

Updated: December 1, 2026

Each project in your Craft CMS portfolio needs a link to its own demo. In Craft 5.3 or later, store the address in a Link field and render it with Twig when an entry has a value. Editors can then change the clip from the project entry.

Set up the demo field

Imagine a studio with a 50-second lamp demo and another project with no video. Add a Link field such as videoLink to the field layout for the portfolio entry type. Allow URL links. Upload the lamp demo to Dembed if it is cleared for sharing, then copy its /v/ watch address when ready. Paste that address into the lamp entry.

Render the link from the template

In the entry template, check that videoLink has a value before you output the link. Use the field value for href and give the link descriptive text such as “Watch the demo.” If one template serves multiple languages, use the site’s normal translation method. Craft defines the field and the template controls where it appears.

If you duplicate an entry for a new project, clear the copied value until the right clip is available. Check the name on the watch page. It can reveal that the new entry still links to the previous project. During review, record which projects have a demo and who maintains each URL. If the portfolio has several languages, open the entry in each one. Add enough information to the link text to explain when it opens an external page and what language viewers will hear.

Test one entry with a video and one without

Open the published lamp project from a phone and follow its link. The project without video should keep its layout without displaying an empty link. If the preview has the content and the public page does not, check that you published the entry and edited the template assigned to its section.

Frequently asked questions

Save the watch address. This workflow uses a Link field so readers can open the video’s watch page.

You might also like

Host your videos for free and earn from every view

Create your account in under a minute, upload your first video and start earning from day one.