I want to add only new image on my site, while text_1, text_2, text_3, text_4 need to stay unchanged. But here is the problem, if I upload the new image, and don't fill text_1,2,3,4 on page they will be empty and the new image will be there. Here is my admin panel:
http://i.imgur.com/jLtX9hO.png
This is the code I'm currently using.
http://i.imgur.com/jLtX9hO.png
This is the code I'm currently using.
- Code: Select all
<cms:template title="Home" clonable="1" commentable="0">
<cms:editable name='text_1' type='richtext'/>
<cms:editable name='text_2' type='richtext'/>
<cms:editable name='img' type='image'/>
<cms:editable name='text_3' type='richtext'/>
<cms:editable name='text_4' type='richtext'/>
</cms:template>
<cms:pages limit='0'>
<div class="intro-item" style="background-image: url(<cms:show img/>);">
<div class="caption">
<h2><cms:show text_1/></h2>
<p><cms:show text_2/></p>
<a class="button white transparent" href="contact.html">Contact</a>
</div>
</div>
</cms:pages>
<cms:pages limit='0'>
<div class="quote">
<p>"<cms:show text_3/>"</p>
<div class="author"><cms:show text_4/></div>
</div>
</cms:pages>