Snippet: Template logic to test object attribute

This is a Stub article. Help the eZ Publish community by expanding it!

Example

You can use this as a simple solution

{if $attribute.content.filename}
{* show the player *}
...
{else}
 
{* omit the player *}
...
{/if} 

Reference