mardi 9 juin 2015

smarty if empty else smarty value

I have smarty value if it empty need another result

{get_video_meta video_id=$video_data.id key='test'}

this value print "test" If this value is empty else how can i use?

 {if !empty({get_video_meta video_id=$video_data.id key='test'})} 
  No value
 {else}
 {get_video_meta video_id=$video_data.id key='test'}
{/if}

This code not work

Aucun commentaire:

Enregistrer un commentaire