I have a set of 5 pages in a collection template and for 3 of them I need to have a video at the top and for the other 2 I need to use an image. Is there a way to do this?
The way to do it that I describe below may be OK for your site but it may not be OK for others, it all depends how versatile the site has to be.
If you have 5 records in a collection, and for 2 specific records you want a video at the top, and for the 3 others an image:
In your collection settings, create 2 fields: one is Featured video, one is Featured image. Put a video in the video field for the 2 records that need a big video on top and let the image field blanK Do the opposite for the 3 other records.
Now design your template. Video section won’t show up when there is no video in the record, and the same for the featured image posts.
This is not versatile because if you need to change this, you have to edit your records.
There are other solutions, for example:
Add 2 switchs to your collection, one called Featured image post and the other featured video post.
Now use those switches and their on or off position to alter the visibility of video and image sections of your posts. The benefit here is when you need to change things, you just have a switch to pass on or off when editing your records.
Also you should populate the collections with the images, you still have a lot of placeholders and in webflow it’s better to test with real images and content, placeholders sometimes behave in an unexpected way.