Возможно ли вывести доп.свойство из структуры, в xsl хлебных крошек?

#
Возможно ли вывести доп.свойство из структуры, в xsl хлебных крошек?
Здравствуйте! Есть доп. свойство для меню "Прайс лист". Заполнил доп.свойство и теперь его нужно подсунуть xsl хлебных крошек (куда поставить,потом разберусь).
Возможно ли это вообще сделать?
Пытался так задать
<xsl:value-of select="property_value[tag_name='add_title']/value"/>
не выходит.
Потом вот так
<xsl:variable name="current_structure_id" select="/site/current_structure_id"/>
<xsl:value-of select="/current_structure_id/property_value[tag_name='add_title']/value"/>
тож видимо не то.
Может я что не реальное хочу) Заранее спасибо.
#
Re: Возможно ли вывести доп.свойство из структуры, в xsl хлебных крошек?
Показ крошек у вас идет через Structure_Controller_Breadcrumbs ? Если да, то в вызове нужно указать метод showProperties(TRUE), чтобы доп свойства структуры пошли в xml  http://www.hostcms.ru/api6/class-Structure_Controller_Breadcrumbs.html
«Не выходи из комнаты, не совершай ошибку…»
#
Re: Возможно ли вывести доп.свойство из структуры, в xsl хлебных крошек?
llirik, огромное спасибо! Все работает
#
Re: Возможно ли вывести доп.свойство из структуры, в xsl хлебных крошек?
llirik, а почему у меня в крошки передается название доп.свойства? Типа назвал свойство "Второй заголовок" и он выходит в крошках последним как ... > Второй заголовок


<?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:template match="/site">
      <ol class="breadcrumb">
         <xsl:if test="count(*[@id]) &gt; 0">
            <li>
               <a href="/">Главная</a>
            </li>
            <xsl:apply-templates select="*[@id]" />
         </xsl:if>
         <xsl:call-template name="head"/>
      </ol>
   </xsl:template>
   
   <xsl:template match="*">
      
      <!-- Определяем адрес ссылки -->
      <xsl:variable name="link">
         <xsl:choose>
            <!-- Если внутренняя ссылка -->
            <xsl:when test="link != ''">
               <xsl:value-of disable-output-escaping="yes" select="link"/>
            </xsl:when>
            <!-- Если внешняя ссылка -->
            <xsl:otherwise>
               <xsl:value-of disable-output-escaping="yes" select="url"/>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
            
      <!-- Показывать ссылку? -->
      <xsl:choose>
         <xsl:when test="(show = 1 or active/node() and active = 1) and count(*[@id][link/node() or url/node()]) &gt; 0">
            <li>
               <a href="{$link}">
                  <xsl:value-of disable-output-escaping="yes" select="name"/>
               </a>
            </li>
            <xsl:text> </xsl:text>
            </xsl:when>
            <xsl:otherwise>
               <li><xsl:value-of disable-output-escaping="yes" select="name"/></li>
            </xsl:otherwise>
         </xsl:choose>      
      <xsl:apply-templates select="*[@id][link/node() or url/node()]" />      
   </xsl:template>
   
   
   <xsl:template name="head" match="*" mode="mo">
      
      <!-- Определяем адрес ссылки -->
      <xsl:variable name="link">
         <xsl:choose>
            <!-- Если внутренняя ссылка -->
            <xsl:when test="link != ''">
               <xsl:value-of disable-output-escaping="yes" select="link"/>
            </xsl:when>
            <!-- Если внешняя ссылка -->
            <xsl:otherwise>
               <xsl:value-of disable-output-escaping="yes" select="url"/>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
            
      <!-- Показывать ссылку? -->
      <xsl:choose>
         <xsl:when test="(show = 1 or active/node() and active = 1) and count(*[@id][link/node() or url/node()]) &gt; 0">            
         </xsl:when>
         <xsl:otherwise>
            <div class="page-title category-title">
               <h1 class="section-text" style="margin-top: 30px;">                        
                  <xsl:value-of select="property_value[tag_name='add_title']/value"/>   
               </h1>
            </div>
         </xsl:otherwise>
      </xsl:choose>      
      <xsl:apply-templates select="*[@id][link/node() or url/node()]" mode="mo" />      
   </xsl:template>
   
</xsl:stylesheet>
#
Re: Возможно ли вывести доп.свойство из структуры, в xsl хлебных крошек?
Нужно смотреть xml , скорее всего нужно внести дополнительное  ограничение в xsl-шаблоне, чтобы мы не попадали в тег <property> с описанием свойства, откуда и получаем его название.  
«Не выходи из комнаты, не совершай ошибку…»
#
Re: Возможно ли вывести доп.свойство из структуры, в xsl хлебных крошек?
llirik,
<site id="2">
   <name>Народные Балконы</name>
   <active>1</active>
   <coding>UTF-8</coding>
   <sorting>0</sorting>
   <locale>ru_RU.utf8</locale>
   <timezone></timezone>
   <max_size_load_image>70</max_size_load_image>
   <max_size_load_image_big>300</max_size_load_image_big>
   <admin_email>admin@localhost.ru</admin_email>
   <lng></lng>
   <send_attendance_report>1</send_attendance_report>
   <chmod>0755</chmod>
   <files_chmod>0644</files_chmod>
   <date_format>%d.%m.%Y</date_format>
   <date_time_format>%d.%m.%Y %H:%M:%S</date_time_format>
   <error>E_ALL</error>
   <error404>93</error404>
   <error403>88</error403>
   <user_id>0</user_id>
   <closed>121</closed>
   <safe_email>1</safe_email>
   <css_left></css_left>
   <css_right></css_right>
   <notes></notes>
   <uploaddir>upload/</uploaddir>
   <nesting_level>3</nesting_level>
   <deleted>0</deleted>
   <current_structure_id>133</current_structure_id>
   <structure id="133">
      <structure_menu_id>3</structure_menu_id>
      <template_id>17</template_id>
      <data_template_id>0</data_template_id>
      <site_id>2</site_id>
      <document_id>15</document_id>
      <lib_id>0</lib_id>
      <parent_id>0</parent_id>
      <name>Ремонт балкона</name>
      <show>1</show>
      <url></url>
      <sorting>2</sorting>
      <path>price-list</path>
      <type>0</type>
      <siteuser_group_id>0</siteuser_group_id>
      <https>0</https>
      <active>1</active>
      <indexing>1</indexing>
      <changefreq>2</changefreq>
      <priority>0.5</priority>
      <user_id>19</user_id>
      <link>/price-list/</link>
      <dir>/upload/structure_2/1/3/3/structure_133/</dir>
      <property_value id="75">
         <property_id>69</property_id>
         <entity_id>133</entity_id>
         <value>Ремонт балкона — прайслист</value>
         <property_dir_id>0</property_dir_id>
         <tag_name>add_title</tag_name>
      </property_value>
   </structure>
   <property id="69">
      <property_dir_id>0</property_dir_id>
      <list_id>0</list_id>
      <informationsystem_id>0</informationsystem_id>
      <shop_id>0</shop_id>
      <name>Второй заголовок</name>
      <description></description>
      <type>1</type>
      <default_value></default_value>
      <tag_name>add_title</tag_name>
      <sorting>0</sorting>
      <image_large_max_width>300</image_large_max_width>
      <image_large_max_height>300</image_large_max_height>
      <image_small_max_width>70</image_small_max_width>
      <image_small_max_height>70</image_small_max_height>
      <hide_small_image>0</hide_small_image>
      <guid>D93A35DA-762E-7CBC-7DC2-2B166FF1E047</guid>
      <multiple>0</multiple>
      <user_id>19</user_id>
   </property>
</site>
Авторизация