Вот кусок кода, который выводит 5 дополнительных фото в галерею из дополнительных свойств (файлы).
Но только если эти файлы загрузить вручную.
Как изменить, что бы выводило загруженные с 1С файлы?
<div id="list3">
<ul class="list3 uk-grid" style="padding:0px;margin:0px;">
<xsl:if test="property_value[tag_name='photo-gallery'][1]/file != ''">
<li class="uk-width-large-1-3 uk-width-medium-1-2 uk-width-small-1-1 uk-panel shop-item-block">
<a href="{dir}{property_value[tag_name='photo-gallery'][1]/file}" onclick="return hs.expand(this)">
<div class="shop-item-img-block">
<div class="shop-item-img" style="background-image:url('{dir}{property_value[tag_name='photo-gallery'][1]/file}'

;">
<i class="uk-icon-search-plus quick-view-button"></i><div class="shop-item-img-opacity">
</div>
<img src="{dir}{property_value[tag_name='photo-gallery'][1]/file}" alt="{name}" title="{name}" />
</div>
</div>
</a>
</li>
</xsl:if>
<xsl:if test="property_value[tag_name='photo-gallery'][2]/file != ''">
<li class="uk-width-large-1-3 uk-width-medium-1-2 uk-width-small-1-1 uk-panel shop-item-block">
<a href="{dir}{property_value[tag_name='photo-gallery'][2]/file}" onclick="return hs.expand(this)">
<div class="shop-item-img-block">
<div class="shop-item-img" style="background-image:url('{dir}{property_value[tag_name='photo-gallery'][2]/file}'

;">
<i class="uk-icon-search-plus quick-view-button"></i><div class="shop-item-img-opacity"></div>
<img src="{dir}{property_value[tag_name='photo-gallery'][2]/file}" alt="{name}" title="{name}" /></div></div></a></li></xsl:if>
<xsl:if test="property_value[tag_name='photo-gallery'][3]/file != ''">
<li class="uk-width-large-1-3 uk-width-medium-1-2 uk-width-small-1-1 uk-panel shop-item-block">
<a href="{dir}{property_value[tag_name='photo-gallery'][3]/file}" onclick="return hs.expand(this)">
<div class="shop-item-img-block">
<div class="shop-item-img" style="background-image:url('{dir}{property_value[tag_name='photo-gallery'][3]/file}'

;">
<i class="uk-icon-search-plus quick-view-button"></i><div class="shop-item-img-opacity"></div>
<img src="{dir}{property_value[tag_name='photo-gallery'][3]/file}" alt="{name}" title="{name}" /></div></div></a></li></xsl:if>
<xsl:if test="property_value[tag_name='photo-gallery'][4]/file != ''">
<li class="uk-width-large-1-3 uk-width-medium-1-2 uk-width-small-1-1 uk-panel shop-item-block">
<a href="{dir}{property_value[tag_name='photo-gallery'][4]/file}" onclick="return hs.expand(this)">
<div class="shop-item-img-block">
<div class="shop-item-img" style="background-image:url('{dir}{property_value[tag_name='photo-gallery'][4]/file}'

;">
<i class="uk-icon-search-plus quick-view-button"></i><div class="shop-item-img-opacity"></div>
<img src="{dir}{property_value[tag_name='photo-gallery'][4]/file}" alt="{name}" title="{name}" /></div></div></a></li></xsl:if>
<xsl:if test="property_value[tag_name='photo-gallery'][5]/file != ''">
<li class="uk-width-large-1-3 uk-width-medium-1-2 uk-width-small-1-1 uk-panel shop-item-block">
<a href="{dir}{property_value[tag_name='photo-gallery'][5]/file}" onclick="return hs.expand(this)">
<div class="shop-item-img-block">
<div class="shop-item-img" style="background-image:url('{dir}{property_value[tag_name='photo-gallery'][5]/file}'

;">
<i class="uk-icon-search-plus quick-view-button"></i><div class="shop-item-img-opacity"></div>
<img src="{dir}{property_value[tag_name='photo-gallery'][5]/file}" alt="{name}" title="{name}" /></div></div></a></li></xsl:if>
</ul>
</div>