eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

Snippet: Template logic to test object attribute

Example

You can use this as a simple solution

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

{* omit the player *}
...
{/if} 

Reference

Article provided by eZpedia

All text is available under the terms of the GNU Free Documentation License

Powered by eZ Publish 6.0.2stable

Hosted by USA eZ Publish Community Partner : Brookins Consulting