Не пойму – что я делаю не так!
Не выводится доп.свойство!
...и в макете прописал:
<div class="mt-4">
<?php
$Shop_Controller_Show = new Shop_Controller_Show(Core_Entity::factory('Shop', 36));
$Shop_Controller_Show
->xsl(Core_Entity::factory('Xsl')->getByName('УслугиНаГлавной'))
//->groupsProperties(TRUE)
->itemsProperties(TRUE)
->limit(99);
$Shop_Controller_Show
->shopItems()
->queryBuilder()
->clearOrderBy()
->orderBy('shop_items.sorting', 'ASC');
$Shop_Controller_Show
->show();
?>
</div>
...и в XSL-шаблоне прописал:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:hostcms="http://www.hostcms.ru/" exclude-result-prefixes="hostcms">
<xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml" />
<xsl:decimal-format name="my" decimal-separator="," grouping-separator=" " />
<xsl:template match="/"><xsl:apply-templates select="/shop" /></xsl:template>
<xsl:template match="/shop">
<h2 class="h3 fs-1 text-center">Наши услуги</h2>
<!-- Выводим товары магазина -->
<div class="row row-cols-2 row-cols-md-4 g-4 text-center text-white">
<xsl:apply-templates select="shop_item" />
</div>
</xsl:template>
<!-- Шаблон для товара -->
<xsl:template match="shop_item">
<div class="col">
<div class="card ratio ratio-1x1 bg-image hover-overlay hover-zoom">
<img src="{dir}{image_small}" class="w-100 h-100" />
<div class="d-flex align-items-center justify-content-center">
<h5 class="font-family-narrow-changing text-uppercase fs-4"><xsl:value-of select="name" /></h5>
<h6><xsl:value-of select="description_service" /></h6>
<h6><xsl:value-of disable-output-escaping="yes" select="property_value[tag_name='description_service']/value" /></h6>
</div>
<a href="{url}">
<div class="mask" style="background-color: rgba(0, 0, 0, 0.5)"></div>
</a>
</div></div>
</xsl:template>
</xsl:stylesheet>
Название XML-тега:
description_service.
Кто скажет: в чём тут дело?..