clickrain / videolink

Video Link is a Field Type add-on for ExpressionEngine that enables easy and user-friendly embedding of user-defined YouTube and Vimeo videos.
MIT License
15 stars 6 forks source link

Valid tag #1

Closed ghost closed 10 years ago

ghost commented 10 years ago

Would be great to have a tag that outputs if the field is valid, so it can be excluded in an {if '{your-field-name:valid}'} or {if '{your-field-name:status}'}

bryanburgers commented 10 years ago

Good call. I like it. Thanks!

bryanburgers commented 10 years ago

You can now use this in one of two ways:

{if your-field-name:valid}
...
{/if}

or

{if your-field-name:type == "youtube"}
...
{/if}