taniacr Posted November 21, 2018 Share Posted November 21, 2018 Hello, Maybe a long shot but maybe someone can help out a newb.. Here's what i'm trying to do in a layout: If category_cover is defined show that or else show the category_cover defined for Home category. Any help? Link to comment Share on other sites More sharing options...
joseantgv Posted November 21, 2018 Share Posted November 21, 2018 1 hour ago, taniacr said: Hello, Maybe a long shot but maybe someone can help out a newb.. Here's what i'm trying to do in a layout: If category_cover is defined show that or else show the category_cover defined for Home category. Any help? PS version? Link to comment Share on other sites More sharing options...
taniacr Posted November 21, 2018 Author Share Posted November 21, 2018 Just now, joseantgv said: PS version? Opps sorry.. 1.7 Link to comment Share on other sites More sharing options...
taniacr Posted November 28, 2018 Author Share Posted November 28, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now