03-21-2019, 02:35 PM
You are trying to use a control TWICE in a template.
MyLabel1 is in the region. When you use {%MyRegion%} it embeds the whole region including contents. You then again explicitly reference {%MyLabel1%}. This causes MyLabel1 to try to be rendered twice into the same page which is invalid.
<h1>Sample</h1>
<div class="row">
{%MyRegion%}
<div class="col">
<p class="label label-danger">{%MyLabel1%}</p>
<p class="label label label-info">{%MyLabel2%}</p>
</div>
</div>
MyLabel1 is in the region. When you use {%MyRegion%} it embeds the whole region including contents. You then again explicitly reference {%MyLabel1%}. This causes MyLabel1 to try to be rendered twice into the same page which is invalid.
<h1>Sample</h1>
<div class="row">
{%MyRegion%}
<div class="col">
<p class="label label-danger">{%MyLabel1%}</p>
<p class="label label label-info">{%MyLabel2%}</p>
</div>
</div>