О нас говорят - как сделать

#
О нас говорят - как сделать
Здравствуйте.
Хочу сделать блок О нас говорят. Делаю на основе гостевой книги, для вывода записи в макет сайта взял XSL шаблон СписокНовостейНаГлавной. Но он не выводит текст записи, и подскажите еще как вывести доп свойства типа строка?
<div hostcms:id="{@id}" hostcms:field="text" hostcms:entity="informationsystem_item" hostcms:type="wysiwyg">
<xsl:value-of disable-output-escaping="yes" select="text"/>
</div
#
Re: О нас говорят - как сделать
Посмотрел в XML а там нет данных о доп свойствах, хотя в XML для другого XSL шаблона данные с этих доп. свойств есть, получается их я правильно создал. Вот 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:template match="/informationsystem">
   <xsl:if test="informationsystem_item">
      <xsl:apply-templates select="informationsystem_item"/>
   </xsl:if>
</xsl:template>
   
<xsl:template match="informationsystem_item">
   <div class="row clearfix">
         <div>
            <p>
               <xsl:choose>
                  <xsl:when test="count(siteuser) &gt; 0">
                     <a href="/users/info/{siteuser/login}/"><xsl:value-of select="siteuser/login"/></a>
                  </xsl:when>
                     <xsl:otherwise>
                           <xsl:choose>
                              <xsl:when test="property_value[tag_name='email']/value != ''">
                                 <a href="mailto:{property_value[tag_name='email']/value}"><xsl:value-of select="property_value[tag_name='author']/value"/></a>
                              </xsl:when>
                              <xsl:otherwise>
                           <xsl:value-of select="property_value[tag_name='author']/value"/>
                        </xsl:otherwise>
                     </xsl:choose>
                  </xsl:otherwise>
               </xsl:choose>   
            </p>
               <p><xsl:value-of select="property_value[tag_name='Имя xml тега']/value"/></p>
               <p><xsl:value-of select="name"/></p>   
            </div>
         </div>
      <p><xsl:value-of disable-output-escaping="yes" select="text"/></p>   
   </xsl:template>   
</xsl:stylesheet>
#
Re: О нас говорят - как сделать
А вывод в дин.странице
->itemsProperties(TRUE)
dankom
#
Re: О нас говорят - как сделать
dankom,
Да.
$Informationsystem_Controller_Show
   ->xsl(
      Core_Entity::factory('Xsl')->getByName($xslName)
   )
   ->itemsProperties(TRUE)
   ->show();
#
Re: О нас говорят - как сделать
XML
<informationsystem id="3">
   <informationsystem_dir_id>0</informationsystem_dir_id>
   <structure_id>13</structure_id>
   <site_id>1</site_id>
   <name>О нас говорят</name>
   <description></description>
   <items_sorting_direction>1</items_sorting_direction>
   <items_sorting_field>0</items_sorting_field>
   <groups_sorting_direction>0</groups_sorting_direction>
   <groups_sorting_field>0</groups_sorting_field>
   <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>
   <siteuser_group_id>5</siteuser_group_id>
   <use_captcha>1</use_captcha>
   <watermark_file></watermark_file>
   <watermark_default_use_large_image>1</watermark_default_use_large_image>
   <watermark_default_use_small_image>1</watermark_default_use_small_image>
   <watermark_default_position_x>50%</watermark_default_position_x>
   <watermark_default_position_y>100%</watermark_default_position_y>
   <user_id>19</user_id>
   <items_on_page>12</items_on_page>
   <format_date>%d.%m.%Y</format_date>
   <format_datetime>%d.%m.%Y %H:%M:%S</format_datetime>
   <url_type>0</url_type>
   <typograph_default_items>1</typograph_default_items>
   <typograph_default_groups>1</typograph_default_groups>
   <apply_tags_automatically>0</apply_tags_automatically>
   <change_filename>1</change_filename>
   <apply_keywords_automatically>0</apply_keywords_automatically>
   <group_image_large_max_width>300</group_image_large_max_width>
   <group_image_large_max_height>300</group_image_large_max_height>
   <group_image_small_max_width>70</group_image_small_max_width>
   <group_image_small_max_height>70</group_image_small_max_height>
   <preserve_aspect_ratio>1</preserve_aspect_ratio>
   <preserve_aspect_ratio_small>1</preserve_aspect_ratio_small>
   <preserve_aspect_ratio_group>1</preserve_aspect_ratio_group>
   <preserve_aspect_ratio_group_small>1</preserve_aspect_ratio_group_small>
   <url>/what-others-say-about-us/</url>
   <captcha_id>52822</captcha_id>
   <items_count>1</items_count>
   <items_total_count>1</items_total_count>
   <subgroups_count>0</subgroups_count>
   <subgroups_total_count>0</subgroups_total_count>
   <siteuser_id>0</siteuser_id>
   <group>0</group>
   <page>0</page>
   <part>0</part>
   <limit>3</limit>
   <total>1</total>
   <informationsystem_item id="179">
      <informationsystem_id>3</informationsystem_id>
      <informationsystem_group_id>0</informationsystem_group_id>
      <shortcut_id>0</shortcut_id>
      <name>Тестовая запись</name>
      <description>Тестовое описание</description>
      <active>1</active>
      <image_large></image_large>
      <image_small></image_small>
      <image_large_width></image_large_width>
      <image_large_height></image_large_height>
      <image_small_width></image_small_width>
      <image_small_height></image_small_height>
      <sorting>0</sorting>
      <ip>92.240.210.180</ip>
      <path>179</path>
      <indexing>1</indexing>
      <seo_title></seo_title>
      <seo_description></seo_description>
      <seo_keywords></seo_keywords>
      <siteuser_group_id>-1</siteuser_group_id>
      <showed>3</showed>
      <user_id>19</user_id>
      <siteuser_id>0</siteuser_id>
      <deleted>0</deleted>
      <url>/what-others-say-about-us/179/</url>
      <date>13.03.2015</date>
      <datetime>13.03.2015 16:16:28</datetime>
      <start_datetime>0000-00-00 00:00:00</start_datetime>
      <end_datetime>0000-00-00 00:00:00</end_datetime>
      <dir>/upload/information_system_3/1/7/9/item_179/</dir>
      <rate likes="0" dislikes="0">0</rate>
   </informationsystem_item>
</informationsystem>
Модератор
#
Re: О нас говорят - как сделать
Вы уверены, что именно в нужной ТДС проверили и добавили ->itemsProperties(TRUE) ? если св-ва есть, они должны быть в XML. Но я у Вас в XML не вижу даже списка доп. св-в, хотя он должен быть, т.к. itemsPropertiesList(TRUE) по умолчанию. Может у ИС №3 вообще нет свойств?
#
Re: О нас говорят - как сделать
HostCMS,
Да, проверял в ТДС Информационная система для Вопросы-ответы, Гостевая книга и т.п. и проблемку уже решил. Но все равно спасибо что не оставили без внимания.
Авторизация