Текстовый блок в группе товаров

#
Re: Текстовый блок в группе товаров
Свежий вопрос.
там все сделали (ЕЩЕ РАЗ СПАСИБО h4mpy) добавили два поля, одно над, другое под ссылками.
Теперь, если в подгруппе добавить описание, то оно появляется на ссылке в группе.
Как от этого избавиться?
http://www.mir4x4.ru/shop/bampery/
#
Re: Текстовый блок в группе товаров
верхнее <!-- Верхнее описание -->
нижнее <!-- Нижнее описание -->

Если дописать в верхнее в подгруппе, то появляется описание ссылки в группе.
С нижним все нормально.
как убрать описание под ссылкой?

XSL шаблон:
<xsl:template match="/shop">
      
      <!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
      <xsl:variable name="parent_group_id" select="@current_group_id"/>
      
      <!-- Если в находимся корне - выводим название информационной системы -->
      
      <!-- <xsl:if test="$parent_group_id = 0">
         <h1>
            <xsl:value-of disable-output-escaping="yes" select="name"/>
         </h1>
      </xsl:if> -->
      
      <!-- Если в находимся в группе - выводим название группы -->
      <!-- <xsl:if test="$parent_group_id != 0">
         <h1>
            <xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/name"/>
         </h1>
      </xsl:if> -->
      
      <!-- Обработка выбранных тэгов -->
      <xsl:if test="count(selected_tags/tag) = 1">
      <h2>Метка &#x97; <strong><xsl:value-of select="selected_tags/tag/tag_name"/></strong>.</h2>
      </xsl:if>
      
      <!-- Путь к группе -->
      <div class="path">
         <xsl:apply-templates select=".//group[@id=$parent_group_id]" mode="goup_path"/>
      </div>
      
      <!-- Верхнее описание -->
      <xsl:if test="$parent_group_id != 0">
         <xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/propertys/property[@xml_name = 'text_group']/value"/>
      </xsl:if>
      <br /><br />
      
      <xsl:variable name="count">1</xsl:variable>
      
      <!-- Отображение подгрупп данной группы, только если подгруппы есть и не идет фильтра по меткам -->
      <xsl:if test="count(selected_tags/tag) = 0 and count(.//group[@parent=$parent_group_id]) &gt; 0">
         <xsl:apply-templates select=".//group[@parent=$parent_group_id]"  mode="groups"/>
      </xsl:if>
      
      <xsl:if test="count(item) &gt; 0  or apply_filter = 1">
         <br /><br />
         <div style="clear: both"></div>
         <form method="get" action="./">
            <div class="shop_block">
               <p>Цена от:&#xA0;
                  <input name="price_from" size="5" type="text">
                     <xsl:if test="/shop/price_from != 0">
                        <xsl:attribute name="value">
                           <xsl:value-of disable-output-escaping="yes" select="/shop/price_from"/>
                        </xsl:attribute>
                     </xsl:if>
                  </input>&#xA0;
                  
                  до:&#xA0;
                  <input name="price_to" size="5" type="text">
                     <xsl:if test="/shop/price_to != 0">
                        <xsl:attribute name="value">
                           <xsl:value-of disable-output-escaping="yes" select="/shop/price_to"/>
                        </xsl:attribute>
                     </xsl:if>
               </input>&#xA0;</p>
               <p>
                  <span style="white-space: nowrap">Товаров на странице:</span>&#xA0;
                  <select name="on_page">
                     <option value="0">&#x2026;</option>
                     <xsl:call-template name="for_on_page">
                        <xsl:with-param name="i" select="10"/>
                        <xsl:with-param name="n" select="50"/>
                     </xsl:call-template>
                  </select>&#xA0;
                  <input name="apply_filter" value="Применить" type="submit"/>
                  
                  <!-- <xsl:if test="count(properties_for_group/property) &gt; 0">
                     <p>
                        <b>Фильтр по дополнительным свойствам товара:</b>
                     </p>
                     <table cellpadding="10px" cellspacing="0">
                        <tr valign="top">
                           <xsl:apply-templates select="properties_for_group/property"/>
                        </tr>
                     </table>
                  </xsl:if> -->
               </p>
            </div>
            
            <!-- Таблица с элементами для сравнения -->
            <xsl:if test="count(/shop/compare_items/compare_item) &gt; 0">
               <table cellpadding="5px" cellspacing="0" border="0">
                  <tr>
                     <td>
                        <input type="checkbox" onclick="SelectAllItems(this.checked, 'del_compare_id_')" />
                     </td>
                     <td>
                        <b>Сравниваемые элементы</b>
                     </td>
                  </tr>
                  <xsl:apply-templates select="compare_items/compare_item"/>
                  
               </table>
               
               <input name="apply_compare" value="Сравнить" type="button" onclick="javascript:location='{/shop/path}compare_items/';"/>
               <input name="delete_compare" value="Удалить" type="submit"/>
               <!-- <input name="delete_all_compare" value="Удалить все" type="submit"/> -->
            </xsl:if>
            
            <!-- Сортировка товаров -->
            <div class="shop_block">
               <!-- Определяем ссылку с параметрами фильтра -->
               <xsl:variable name="filter">
                  <xsl:if test="/shop/apply_filter/node()">?action=apply_filter&amp;producer_id=<xsl:value-of select="/shop/producer_id"/>&amp;saller_id=<xsl:value-of select="/shop/saller_id"/>&amp;price_from=<xsl:value-of select="/shop/price_from"/>&amp;price_to=<xsl:value-of select="/shop/price_to"/>&amp;on_page=<xsl:value-of select="/shop/on_page"/>
                     <xsl:if test="/shop/property_xml/node()">
                        <!-- GET для доп. свойств -->
                        <xsl:value-of select="/shop/property_xml"/>
                     </xsl:if>
                  </xsl:if>
               </xsl:variable>
               
               <!-- Определяем первый символ вопрос или амперсанд -->
               <xsl:variable name="first_symbol">
                  <xsl:choose>
                     <xsl:when test="$filter != ''">&amp;</xsl:when>
                     <xsl:otherwise>?</xsl:otherwise>
                  </xsl:choose>
               </xsl:variable>
               
               Сортировать по алфавиту
               
               <xsl:choose>
                  <xsl:when test="/shop/sort_by_field = 1 and /shop/order_direction = 'ASC'">
                     <div class="arrow_up"></div>
                     <img src="/hostcmsfiles/images/arrow_up.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по возрастанию"/>
                  </xsl:when>
                  <xsl:otherwise>
                     <div class="arrow_up_gray"></div>
                     <a href="{$filter}{$first_symbol}sort_by_field=1&amp;order_direction=1" class="without_decor">
                        <img src="/hostcmsfiles/images/arrow_up_gray.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по возрастанию"/>
                     </a>
                  </xsl:otherwise>
               </xsl:choose>
               
               <xsl:choose>
                  <xsl:when test="/shop/sort_by_field = 1 and /shop/order_direction = 'DESC'">
                     <div class="arrow_down"></div>
                     <img src="/hostcmsfiles/images/arrow_down.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по убыванию"/>
                  </xsl:when>
                  <xsl:otherwise>
                     <div class="arrow_down_gray"></div>
                     <a href="{$filter}{$first_symbol}sort_by_field=1&amp;order_direction=2" class="without_decor">
                        <img src="/hostcmsfiles/images/arrow_down_gray.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по убыванию"/>
                     </a>
                  </xsl:otherwise>
               </xsl:choose>,&#xA0;по цене
               
               <xsl:choose>
                  <xsl:when test="/shop/sort_by_field = 2 and /shop/order_direction = 'ASC'">
                     <div class="arrow_up"></div>
                     <img src="/hostcmsfiles/images/arrow_up.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по возрастанию"/>
                  </xsl:when>
                  <xsl:otherwise>
                     <div class="arrow_up_gray"></div>
                     <a href="{$filter}{$first_symbol}sort_by_field=2&amp;order_direction=1" class="without_decor">
                        <img src="/hostcmsfiles/images/arrow_up_gray.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по возрастанию"/></a>
                  </xsl:otherwise>
               </xsl:choose>
               
               <xsl:choose>
                  <xsl:when test="/shop/sort_by_field = 2 and /shop/order_direction = 'DESC'">
                     <div class="arrow_down"></div>
                     <img src="/hostcmsfiles/images/arrow_down.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по убыванию"/>
                  </xsl:when>
                  <xsl:otherwise>
                     <div class="arrow_down_gray"></div>
                     <a href="{$filter}{$first_symbol}sort_by_field=2&amp;order_direction=2" class="without_decor">
                        <img src="/hostcmsfiles/images/arrow_down_gray.png" style="filter: alpha(opacity=0); margin: 0px 0px -4px 0px" alt="по убыванию"/>
                     </a>
                     
                  </xsl:otherwise>
               </xsl:choose>
               
            </div>
            
            <!-- Определяем ссылку с параметрами фильтра -->
            <xsl:variable name="filter">
               <xsl:choose>
                  <xsl:when test="/shop/apply_filter/node()">?action=apply_filter&amp;producer_id=<xsl:value-of select="/shop/producer_id"/>&amp;saller_id=<xsl:value-of select="/shop/saller_id"/>&amp;price_from=<xsl:value-of select="/shop/price_from"/>&amp;price_to=<xsl:value-of select="/shop/price_to"/>&amp;on_page=<xsl:value-of select="/shop/on_page"/>
                     <xsl:if test="/shop/property_xml/node()">
                        <!-- GET для доп. свойств -->
                        <xsl:value-of select="/shop/property_xml"/>
                     </xsl:if>
                  </xsl:when>
                  <xsl:otherwise></xsl:otherwise>
               </xsl:choose>
            </xsl:variable>
            <!-- Определяем первый символ вопрос или амперсанд -->
            <xsl:variable name="first_symbol">
               <xsl:choose>
                  <xsl:when test="$filter != ''">&amp;</xsl:when>
                  <xsl:otherwise>?</xsl:otherwise>
               </xsl:choose>
            </xsl:variable>
            
            <xsl:apply-templates select="item" />
            
            <input name="add_compare" value="Добавить для сравнения" type="submit"/>
            
            <xsl:if test="count(/shop/group[@id = /shop/@current_group_id]/propertys/property) > 0">
               <div style="margin: 10px 0px;">
                  <h2>Атрибуты группы товаров</h2>
                  
                  <xsl:if test="count(property[@dir_id = 0])">
                     <table border="0">
                        <xsl:apply-templates select="property[@dir_id = 0]"/>
                     </table>
                  </xsl:if>
                  
                  <xsl:apply-templates select="/shop/properties_groups_dir"/>
               </div>
            </xsl:if>
            
            <xsl:if test="count_items &gt; 0 and items_on_page &gt; 0">
               <p>
                  <xsl:call-template name="for">
                     <xsl:with-param name="items_on_page" select="items_on_page"/>
                     <xsl:with-param name="current_page" select="current_page"/>
                     <xsl:with-param name="count_items" select="count_items"/>
                     <xsl:with-param name="visible_pages" select="5"/>
                  </xsl:call-template>
               </p>
               <div style="clear: both"></div>
            </xsl:if>
            
         </form>
      </xsl:if>
      <!-- Нижнее описание -->
      <div style="clear:both;"></div>
      <xsl:if test="$parent_group_id != 0">
         <xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/propertys/property[@xml_name = 'text_down']/value"/>
      </xsl:if>
   </xsl:template>
#
Re: Текстовый блок в группе товаров
проблема решена
Авторизация