Jump to content

Default image if category cover not defined.


Recommended Posts

So here's what I got so far

	{if isset($category.image.large)}
    <div class="category-cover">
    	<img src="{$category.image.large.url}" alt="{$category.image.legend}">
  	</div>
	{else}
    <div class="category-cover">
    	Category ID = 1 Cover
  	</div>
	{/if}

Any help on how I can fetch the category 1 cover ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...