вывод последних новостей и из подгрупп

#
вывод последних новостей и из подгрупп
Здравствуйте. Есть предположим структура
Новости
--Видео
---Ati
---Nvidia
--Фото
---Canon
---Nikon

Можно ли сделать вывод последних новостей с учетом всех подгрупп. Тоесть куда бы новость из всех подразделов (ATI или Nvidia или Canon etk) не была добавлена она все равно выводилась в единичном экземпляре на главной. Для вывода данных использую код из макета

      <?php
      // Вывод информационной системы
      $InformationSystem = & singleton('InformationSystem');

      // Количество выводимых элементов
      $item_count = 1;

      // Код информационной системы
      $InformationSystemId = 25;

      // Код отображаемой группы инфосистем
      $InformationGroupId = false;  // false - из всех групп, 0 - из корневой группы

      $InformationSystem->ShowInformationSystem($InformationSystemId, $InformationGroupId, 'СписокПоследнихРабот', $item_count, 0);
      ?>
Модератор
#
Re: вывод последних новостей и из подгрупп
Zeldar,
Вопрос не в том, как вывести новости из всех подгрупп (судя по коду они так и выводятся), вопрос в том, чтобы не выводились дубликаты?
Дублирующиеся новости в виде ярлыков или просто дубликаты?
#
Re: вывод последних новостей и из подгрупп
Как то странно он себя ведет. Вот генерируемый код
<?xml version="1.0" encoding="UTF-8"?>
<document>
   <site_user_id>0</site_user_id>
   <blocks id="25">
      <name>Фотосъемка</name>
      <description></description>
      <url>/photo/</url>
      <access>0</access>
      <parent_group_id>0</parent_group_id>
      <count_items>0</count_items>
      <count_items_on_page>10</count_items_on_page>
      <count_all_items>13</count_all_items>
      <count_groups>3</count_groups>
      <count_all_groups>9</count_all_groups>
      <group id="23" parent_id="0">
         <site_user>0</site_user>
         <name>Истории</name>
         <description></description>
         <order>0</order>
         <path>istorii</path>
         <fullpath>istorii/</fullpath>
         <access>-1</access>
         <activity>1</activity>
         <count_items>0</count_items>
         <count_all_items>1</count_all_items>
         <count_groups>1</count_groups>
         <count_all_groups>1</count_all_groups>
         <big_image  width="700" height="466">/upload/information_system_25/0/2/3/group_23/information_groups_23.jpg</big_image>
         <small_image width="150" height="99">/upload/information_system_25/0/2/3/group_23/small_information_groups_23.jpg</small_image>
         <allow_indexation>1</allow_indexation>
         <propertys>
         </propertys>
      </group>
      <group id="19" parent_id="0">
         <site_user>0</site_user>
         <name>Свадьба</name>
         <description></description>
         <order>0</order>
         <path>svadba</path>
         <fullpath>svadba/</fullpath>
         <access>-1</access>
         <activity>1</activity>
         <count_items>0</count_items>
         <count_all_items>8</count_all_items>
         <count_groups>2</count_groups>
         <count_all_groups>2</count_all_groups>
         <allow_indexation>1</allow_indexation>
         <propertys>
         </propertys>
      </group>
      <group id="16" parent_id="0">
         <site_user>0</site_user>
         <name>Венчание</name>
         <description></description>
         <order>1</order>
         <path>bu</path>
         <fullpath>bu/</fullpath>
         <access>-1</access>
         <activity>1</activity>
         <count_items>0</count_items>
         <count_all_items>4</count_all_items>
         <count_groups>3</count_groups>
         <count_all_groups>3</count_all_groups>
         <allow_indexation>1</allow_indexation>
         <propertys>
         </propertys>
      </group>
      <tags>
      </tags>
      <items>
         <count_items>13</count_items>
         <current_page>0</current_page>
         <items_on_page>1</items_on_page>
         <item id="103" group_id="17">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 13:55:52</item_datetime>
            <item_time>13:55:52</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>1</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="1000" height="664">/upload/information_system_25/1/0/3/item_103/information_items_103.jpg</item_image>
            <item_small_image width="150" height="99">/upload/information_system_25/1/0/3/item_103/small_information_items_103.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/bu/20-aprelja-2010-goda/priroda-1/</item_path>
            <item_path_field>priroda-1</item_path_field>
            <item_show_count>1</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
      </items>
   </blocks>
</document>


Хотя это совсем не последний созднанный элемент, он вообще самый самый первый который был создан в этой информационной группе
Модератор
#
Re: вывод последних новостей и из подгрупп
Zeldar,
А где в коде сказано, что должен быть последний элемент? Посмотрите в API сортировки для этого метода.
#
Re: вывод последних новостей и из подгрупп
Просто у меня таких блоков на странице три, но только в этом в инфосистеме есть много подгрупп, в двух остальных - работает все как положено, а вот в третьем - просто беда.
А как правильно должна выглядеть сортировка? Можно маленькую помощь ...
Модератор
#
Re: вывод последних новостей и из подгрупп
http://www.hostcms.ru/api/HostCMS_5/InformationSystem.html#methodShowInformationSystem
# $property['Order'] = ASC/DESC порядок сортировки информационных элементов
# $property['OrderField'] поле сортировки информационных элементов, если случайная сортировка, то записать RAND(). При сортировке по средней оценке информационного элемента указывается поле 'information_items_comment_grade'

Вам нужно сортировать по information_items_date, направление DESC
#
Re: вывод последних новостей и из подгрупп
вот что я не правильно сделал?!
все так же никакой сортировки, вроде бы проверил по примерам, в синтаксисе не ошибся...
      <?php
      // Вывод информационной системы
      $InformationSystem = & singleton('InformationSystem');

      // Количество выводимых элементов
      $item_count = 100;

      // Код информационной системы
      $InformationSystemId = 25;
      
$property['Order'] = 'DESC';      
$property['OrderField'] = 'information_items_date';
      
      // Код отображаемой группы инфосистем
      $InformationGroupId = false;  // false - из всех групп, 0 - из корневой группы

      $InformationSystem->ShowInformationSystem($InformationSystemId, $InformationGroupId, 'СписокПоследнихФотоРабот',  $item_count, array(), $property);
      ?>
Модератор
#
Re: вывод последних новостей и из подгрупп
Поправил Ваш коды выше, не в тот параметр передавали данные.
#
Re: вывод последних новостей и из подгрупп
нда ... спасибо большое ... но все равно не сортирует. Решил вывести побольше элементов, в итоге получается что по умолчанию (наверное) он сортирует элементы внутри каждой группы так как нужно, а вот что бы все элементы из всех групп ... либо просто сортировка так и не работает...
вот как выглядят все элементы
<?xml version="1.0" encoding="UTF-8"?>
<document>
   <site_user_id>0</site_user_id>
   <Order>DESC</Order>
   <OrderField>information_items_date</OrderField>
   <blocks id="25">
      <name>Фотосъемка</name>
      <description></description>
      <url>/photo/</url>
      <access>0</access>
      <parent_group_id>0</parent_group_id>
      <count_items>0</count_items>
      <count_items_on_page>10</count_items_on_page>
      <count_all_items>13</count_all_items>
      <count_groups>3</count_groups>
      <count_all_groups>9</count_all_groups>
      <group id="19" parent_id="0">
         <site_user>0</site_user>
         <name>Свадьба</name>
         <description></description>
         <order>1</order>
         <path>svadba</path>
         <fullpath>svadba/</fullpath>
         <access>-1</access>
         <activity>1</activity>
         <count_items>0</count_items>
         <count_all_items>8</count_all_items>
         <count_groups>2</count_groups>
         <count_all_groups>2</count_all_groups>
         <allow_indexation>1</allow_indexation>
         <propertys>
         </propertys>
      </group>
      <group id="16" parent_id="0">
         <site_user>0</site_user>
         <name>Венчание</name>
         <description></description>
         <order>2</order>
         <path>bu</path>
         <fullpath>bu/</fullpath>
         <access>-1</access>
         <activity>1</activity>
         <count_items>0</count_items>
         <count_all_items>4</count_all_items>
         <count_groups>3</count_groups>
         <count_all_groups>3</count_all_groups>
         <allow_indexation>1</allow_indexation>
         <propertys>
         </propertys>
      </group>
      <group id="23" parent_id="0">
         <site_user>0</site_user>
         <name>Истории</name>
         <description></description>
         <order>3</order>
         <path>istorii</path>
         <fullpath>istorii/</fullpath>
         <access>-1</access>
         <activity>1</activity>
         <count_items>0</count_items>
         <count_all_items>1</count_all_items>
         <count_groups>1</count_groups>
         <count_all_groups>1</count_all_groups>
         <big_image  width="700" height="466">/upload/information_system_25/0/2/3/group_23/information_groups_23.jpg</big_image>
         <small_image width="150" height="99">/upload/information_system_25/0/2/3/group_23/small_information_groups_23.jpg</small_image>
         <allow_indexation>1</allow_indexation>
         <propertys>
         </propertys>
      </group>
      <tags>
      </tags>
      <items>
         <count_items>13</count_items>
         <current_page>0</current_page>
         <items_on_page>100</items_on_page>
         <item id="103" group_id="17">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 13:55:52</item_datetime>
            <item_time>13:55:52</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>1</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="1000" height="664">/upload/information_system_25/1/0/3/item_103/information_items_103.jpg</item_image>
            <item_small_image width="150" height="99">/upload/information_system_25/1/0/3/item_103/small_information_items_103.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/bu/20-aprelja-2010-goda/1/</item_path>
            <item_path_field>1</item_path_field>
            <item_show_count>1</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="108" group_id="20">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 14:55:25</item_datetime>
            <item_time>14:55:25</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>1</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="900" height="600">/upload/information_system_25/1/0/8/item_108/information_items_108.jpg</item_image>
            <item_small_image width="150" height="100">/upload/information_system_25/1/0/8/item_108/small_information_items_108.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/12-sentjabrja-2010-goda/1/</item_path>
            <item_path_field>1</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="111" group_id="21">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 14:59:14</item_datetime>
            <item_time>14:59:14</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>1</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="600" height="900">/upload/information_system_25/1/1/1/item_111/information_items_111.jpg</item_image>
            <item_small_image width="100" height="150">/upload/information_system_25/1/1/1/item_111/small_information_items_111.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/4-avgusta-2010-goda/1/</item_path>
            <item_path_field>1</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="116" group_id="22">
            <item_date>30.10.2010</item_date>
            <item_datetime>30.10.2010 04:05:12</item_datetime>
            <item_time>04:05:12</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>1</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="604" height="453">/upload/information_system_25/1/1/6/item_116/information_items_116.jpg</item_image>
            <item_small_image width="150" height="112">/upload/information_system_25/1/1/6/item_116/small_information_items_116.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/bu/11-maja-2010-goda/1/</item_path>
            <item_path_field>1</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="118" group_id="24">
            <item_date>30.10.2010</item_date>
            <item_datetime>30.10.2010 11:16:52</item_datetime>
            <item_time>11:16:52</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>1</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="700" height="466">/upload/information_system_25/1/1/8/item_118/information_items_118.jpg</item_image>
            <item_small_image width="150" height="99">/upload/information_system_25/1/1/8/item_118/small_information_items_118.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/istorii/svadebnye/1/</item_path>
            <item_path_field>1</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="104" group_id="17">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 14:25:37</item_datetime>
            <item_time>14:25:37</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>2</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="900" height="615">/upload/information_system_25/1/0/4/item_104/information_items_104.jpg</item_image>
            <item_small_image width="150" height="102">/upload/information_system_25/1/0/4/item_104/small_information_items_104.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/bu/20-aprelja-2010-goda/2/</item_path>
            <item_path_field>2</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="109" group_id="20">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 14:56:16</item_datetime>
            <item_time>14:56:16</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>2</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="900" height="600">/upload/information_system_25/1/0/9/item_109/information_items_109.jpg</item_image>
            <item_small_image width="150" height="100">/upload/information_system_25/1/0/9/item_109/small_information_items_109.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/12-sentjabrja-2010-goda/2/</item_path>
            <item_path_field>2</item_path_field>
            <item_show_count>5</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="112" group_id="21">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 14:59:34</item_datetime>
            <item_time>14:59:34</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>2</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="900" height="675">/upload/information_system_25/1/1/2/item_112/information_items_112.jpg</item_image>
            <item_small_image width="150" height="112">/upload/information_system_25/1/1/2/item_112/small_information_items_112.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/4-avgusta-2010-goda/2/</item_path>
            <item_path_field>2</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="105" group_id="17">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 14:26:25</item_datetime>
            <item_time>14:26:25</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>3</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="900" height="615">/upload/information_system_25/1/0/5/item_105/information_items_105.jpg</item_image>
            <item_small_image width="150" height="102">/upload/information_system_25/1/0/5/item_105/small_information_items_105.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/bu/20-aprelja-2010-goda/3/</item_path>
            <item_path_field>3</item_path_field>
            <item_show_count>1</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="110" group_id="20">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 14:56:32</item_datetime>
            <item_time>14:56:32</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>3</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="900" height="600">/upload/information_system_25/1/1/0/item_110/information_items_110.jpg</item_image>
            <item_small_image width="150" height="100">/upload/information_system_25/1/1/0/item_110/small_information_items_110.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/12-sentjabrja-2010-goda/3/</item_path>
            <item_path_field>3</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="113" group_id="20">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 16:02:50</item_datetime>
            <item_time>16:02:50</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>4</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="900" height="615">/upload/information_system_25/1/1/3/item_113/information_items_113.jpg</item_image>
            <item_small_image width="150" height="102">/upload/information_system_25/1/1/3/item_113/small_information_items_113.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/12-sentjabrja-2010-goda/4/</item_path>
            <item_path_field>4</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="114" group_id="20">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 16:03:10</item_datetime>
            <item_time>16:03:10</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>5</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="885" height="900">/upload/information_system_25/1/1/4/item_114/information_items_114.jpg</item_image>
            <item_small_image width="147" height="150">/upload/information_system_25/1/1/4/item_114/small_information_items_114.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/12-sentjabrja-2010-goda/5/</item_path>
            <item_path_field>5</item_path_field>
            <item_show_count>1</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
         <item id="115" group_id="20">
            <item_date>28.10.2010</item_date>
            <item_datetime>28.10.2010 18:27:47</item_datetime>
            <item_time>18:27:47</item_time>
            <item_putoff_date>00.00.0000 00:00:00</item_putoff_date>
            <item_putend_date>00.00.0000 00:00:00</item_putend_date>
            <item_name>6</item_name>
            <item_description></item_description>
            <part count="1">0</part>
            <item_text></item_text>
            <item_image width="600" height="900">/upload/information_system_25/1/1/5/item_115/information_items_115.jpg</item_image>
            <item_small_image width="100" height="150">/upload/information_system_25/1/1/5/item_115/small_information_items_115.jpg</item_small_image>
            <information_items_order>0</information_items_order>
            <item_status>1</item_status>
            <item_seo_title></item_seo_title>
            <item_seo_description></item_seo_description>
            <item_seo_keywords></item_seo_keywords>
            <item_access>-1</item_access>
            <item_path>/photo/svadba/12-sentjabrja-2010-goda/6/</item_path>
            <item_path_field>6</item_path_field>
            <item_show_count>0</item_show_count>
            <site_user_id>0</site_user_id>
            <item_propertys>
            </item_propertys>
            <item_comments>
               <count_comments>0</count_comments>
               <grade_sum>0</grade_sum>
               <grade_count>0</grade_count>
               <average_grade>0</average_grade>
            </item_comments>
         </item>
      </items>
   </blocks>
</document>
Модератор
#
Re: вывод последних новостей и из подгрупп
Zeldar,
Сортирует не по группам. Что-то мне кажется что у Вас реально все-таки другой код.
В самом начале сбросьте $property = array(); и покажите код, который у Вас размещен.
Авторизация