Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Vimeo / Youtube Conditional

Status Resolved
Add-on / Version Reel
Severity Trivial
EE Version

Kaspar Allenbach

Nov 21, 2012

Hi Is it possible to write a Conditional to determine if it is a youtube or vimeo video?

{exp:channel:entries channel="film" limit="1"}
     <div class="flex-video widescreen {if vimeo}vimeo{/if}">
          {video}
     </div>
{/exp:channel:entries}
#1

BoldMinded (Brian)

You will have to quote the var, e.g.

{if "{fieldname:type}" == "youtube"} {/if}
#2

Kaspar Allenbach

Thank you

Login to reply