Wondering if there's a way of achieving the following...
I have a list and detail page where the user can upload a banner image to override a default banner image (set for the whole list) that I've uploaded to a resources folder outside of Perch CMS (for those cases when an image is not available when adding a new item to the list).
Which is easily achieved in a template...
- <perch:if exists="bannerimage">
- <div class="static-banner" style="background-image: url(<perch:content id="bannerimage" type="image" width="1400" height="200" crop="true" help="Add a full width banner image with a minimmum with of 1400px" />);">
- <perch:else>
- <div class="static-banner" style="background-image: url(../default-static-banner.jpg)">
- </perch:if>
- </div>
However is there a way of the user changing the default banner themselves within Perch?
Currently the default banner image has to appear on the list page as the default banner image but would also show on a single item detail page when nothing has been uploaded to override it.