Hi there - I’m sure this is a pretty straight forward task but I’m not sure how to get it done properly.
I have a series of templates that allow users to add either a single banner image or a slideshow at the top of each page.
Each template has two P&T Assets fields. The first only allows a single image to be entered and the second allows multiple images.
The issue I have is shutting off one or the other. If a single image is used there is no trace of the slideshow on the page. However, if the slideshow is used, there is a broken image icon where the single image would go on the page. It only appears in Safari that I know of. If I view the source I see “” above the slideshow.
Here’s the code I’m using in the template - am I using the if statement correctly? Is this the best approach?
{if single_banner_image_country == single_banner_image_country}{single_banner_image_country}
<div id=“featured-image” class=“theme-default”>
<div id=“slider” class=“nivoSlider”>
{rotating_banner_images_country}
{url}
{/rotating_banner_images_country}
</div>
</div>
{/if}
Here’s a URL of the page in development: http://bigplanetadventuretravel.com/country/eastern-africa
Thanks for your time!