Skip to content

Instantly share code, notes, and snippets.

@brandonsheppard
Last active January 15, 2018 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brandonsheppard/932bb2c5d5090f0fe4c6 to your computer and use it in GitHub Desktop.
Save brandonsheppard/932bb2c5d5090f0fe4c6 to your computer and use it in GitHub Desktop.
Check if a category has an image using B@SE
[%set [@hasimage@]%][%asset_url type:'content' id:'[@content_id@]' default:''/%][%/set%]
[%if [@hasimage@]%][%asset_url type:'content' id:'[@content_id@]' default:''/%][%/if%]
@CaptainHilly
Copy link

Nice trick this one. Missing [%/IF%] however 😄

@brandonsheppard
Copy link
Author

Woops, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment