python - Duplicate static_placeholder makes placeholders uneditable -
my site has newsbanner displayed on every page, have created static_placeholders manage content of it. however, banner has different on mobile, means i've created 2 sections, 1 displays large screen newsbanner , other section displays mobile version. content, however, same, have duplicated static_placeholder large screen section mobile section this:
<div class="section no-padding"> <div class="row hide-on-large-only hide" id="announcement-mobile" style="background: linear-gradient(to bottom, #26a69a 0%, #26a69a 50%, #ffffff 50%, #ffffff 100%); "> <div class="col s12"> <div class="card"> <div class="card-image"><a class="btn-floating btn-flat waves-effect waves-default transparent hide-announcement" href="#!" style=""><i class="material-icons">close</i> </a> {% static_placeholder "cta billede" %} <span class="card-title"><i class="material-icons">fiber_new</i> {% static_placeholder "cta overskrift" %}</span></div> <div class="card-content"> <p class="teal-text text-lighten-1 left-align">{% static_placeholder "cta tekst" %}</p> </div> <div class="card-action"> {% static_placeholder "cta links" %} </div> </div> </div> </div> </div><!-- end mobile --> <div class="section no-padding"> <div class="row hide-on-med-and-down hide" id="announcement" style="background: linear-gradient(to bottom, #26a69a 0%, #26a69a 50%, #ffffff 50%, #ffffff 100%); "> <div class="col s12 m8 offset-m2"> <div class="card horizontal hoverable"> <div class="card-image"> {% static_placeholder "cta billede" %} </div> <div class="card-stacked"> <a class="btn-floating btn-flat waves-effect waves-default transparent hide-announcement" href="#!"><i class="material-icons blue-grey-text">close</i> </a> <div class="card-content blue-grey-text"> <span class="card-title light blue-grey-text"><i class="material-icons small">fiber_new</i>{% static_placeholder "cta overskrift" %} </span> <div class="divider blue-grey" style="padding-bottom: 5px; margin-bottom: 15px;"></div> <p class="blue-grey-text left-align">{% static_placeholder "cta tekst" %}</p> </div> <div class="card-action"> {% static_placeholder "cta links" %} </div> </div> </div> </div> </div><!-- end desktop --> </div><!-- end cta -->
this throws following error:
which results in placeholder becoming uneditable.
python version 3.6.1 django version 1.10.7 djangocms version 3.4.4
Comments
Post a Comment