eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

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

Article provided by eZpedia

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

Powered by eZ Publish Community Project 4.2011

Hosted by Swiss eZ Publish partner YMC