Структура XML-дерева страницы

<?xml version="1.0" encoding="UTF-8"?>

<page style="main" date="19.11.2005" time="" query_string="id=202" request_uri="/?id=202" doc_root="" local_manager_need="1">

    секция user - данные пользователя – посетителя страницы

    <user id="" name="" uid="" registered="" email="" login="" ip="">

        группы в которые входят пользователь

        <groups>

            <group id="1">root</group>

        </groups>

        параметры профиля пользователя, включяя данные о подписке на рассылки

        <params>

            <email>dis@graphit.ru</email>

            <user_org>Graphit</user_org>

            <subscribe_interval id="24">ежедневно</subscribe_interval>

            <subscribe_style id="text_short">текст - кратко</subscribe_style>

            <subscribe_rubs>

                <items>

                    <item id="201" value="1">Новости компании</item>

                </items>

            </subscribe_rubs>

        </params>

    </user>

    секция handler - данные обработчика страницы, данные модулей

    <handler>

        <childs_all>6</childs_all>

        <versions>3.6.121 08.11.2005 - func<br></versions>

        ...

    </handler>

    секция params – текущие параметры данной страницы с учетом унаследованных параметров и оверкитов

    <params>

        <site_email_admin>info@graphit.ru</site_email_admin>

        <site_lang>ru</site_lang>

        <site_css_file>/_data/objects/00001/site_css_file.css</site_css_file>

        ...

    </params>

    секция selected – данные, введенные пользователем в форме

    <selected>

        <search_date1>01.01.1998</search_date1>

        ...

    </selected>

    секция meta – описания всех параметров сайта

    <meta>

        <site_email_admin>

            <group_description>ОБЩИЕ</group_description>

            <group_name>site</group_name>

            <name>site_email_admin</name>

            <description>e-mail общий</description>

            <type>text</type>

            <required>0</required>

            <storage>1</storage>

        </site_email_local>

        <site_lang>

            <group_description>ОБЩИЕ</group_description>

            <group_name>site</group_name>

            <name>site_lang</name>

            <description>язык подраздела</description>

            <type>select</type>

            <required>0</required>

            <storage>1</storage>

            <items>

                <item id="ru">russian</item>

                <item id="en">english</item>

            </items>

        </site_lang>

        ...

    </meta>

    секция message – данные текущей страницы, ее дочерних и родителей

    <message style="standart_icon" position="main" id="202" parent_id="200" p_datetime="18.03.2005" e_date="18.03.2005" e_time="17:08" p_date="18.03.2005" p_time="17:08" m_date="29.09.2005" m_time="18:37" publish_date="2005-03-18 17:08:00" modify_date="2005-09-29 18:37:04" enter_date="2005-03-18 17:08:19" user_id="1" group_id="2" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="6" ip="212.67.0.130" host="office3.graphit.ru" level="2" priority="001000" r="1" w="1" x="1">

        заголовок страницы

        <mess_header>О компании</mess_header>

        <tree_order>/000000/998980/999000</tree_order>

        <mess_header_notags>О компании</mess_header_notags>

        <childs_all>6</childs_all>

        параметры страницы (только собственные)

        <params>

            <view_title>О компании</view_title>

        </params>

        дочерние страницы

        <childs>

            <message id="201" parent_id="202" p_datetime="18.03.2005" p_date="18.03.2005" p_time="16:49" m_date="19.11.2005" m_time="13:40" publish_date="2005-03-18 16:49:00" modify_date="2005-11-19 13:40:13" user_id="1" group_id="2" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="34" level="3" priority="001060" r="1" w="1" x="1">

                <mess_header>Новости компании</mess_header>

                <mess_short>События, акции, награды, новые проекты.</mess_short>

                <params>

                    <site_subscribe>1</site_subscribe>

                    <view_block id="standart_icon">стандарт с иконками [вер.таблица]</view_block>

                ...

                </params>

            </message>

            ...

        </childs>

        родители страницы

        <parents>

            <message id="1" parent_id="0" p_datetime="09.04.2004" p_date="09.04.2004" p_time="17:23" publish_date="2004-04-09 17:23:00" user_id="1" group_id="1" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="3" level="0" r="1" w="1" x="1">

                <mess_header>Графит</mess_header>

                <params>

                    <site_name>Студия Графит</site_name>

                    <site_url>http://www.graphit.ru</site_url>

                    ...

                </params>

            </message>

            <message id="200" parent_id="1" p_datetime="06.03.2003" p_date="06.03.2003" p_time="11:52" publish_date="2003-03-06 11:52:00" user_id="1" group_id="2" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="5" level="1" r="1" w="1" x="1">

                <mess_header>Главная</mess_header>

                <params>

                    <redirect>/</redirect>

                    <site_search>1</site_search>

                </params>

            </message>

            <message id="202" parent_id="200" p_datetime="18.03.2005" p_date="18.03.2005" p_time="17:08" publish_date="2005-03-18 17:08:00" user_id="1" group_id="2" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="6" level="2" r="1" w="1" x="1">

                <mess_header>О компании</mess_header>

                <params>

                    <view_title>О компании</view_title>

                </params>

            </message>

        </parents>

    </message>

    секция blocks – данные блоков для текущей страницы

    <blocks>

        непосредственно блок, его параметры и атрибуты

        <message style="image_hor" position="block_header1" id="172" parent_id="164" p_datetime="01.10.2003" p_date="01.10.2003" p_time="13:28" m_date="26.10.2005" m_time="12:33" publish_date="2003-10-01 13:28:00" modify_date="2005-10-26 12:33:18" user_id="1" group_id="2" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="0" level="4" priority="001080" r="1" w="1" x="1">

            <mess_header>шапка верхняя</mess_header>

            <cached_file>/usr/local/webserver/tree36/g/graphit/_data/cache/172.html</cached_file>

            <params>

                <view_block id="image_hor">графика | флэш | контент [гор.таб] [comm]</view_block>

                <block_is>1</block_is>

                <block_pos id="block_header1">HEADER1</block_pos>

                <block_order id="tree_order">натуральная</block_order>

                <block_limit>2</block_limit>

                <block_where>id in (170,220)</block_where>

                <block_check>1</block_check>

            </params>

            выбранные в данный блок страницы (объекты)

            <childs>

                <message id="170" parent_id="181" p_datetime="15.07.2003" p_date="15.07.2003" p_time="09:48" m_date="26.10.2005" m_time="12:32" publish_date="2003-07-15 09:48:00" modify_date="2005-10-26 12:32:59" user_id="1" group_id="2" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="0" level="4" priority="001020" r="1" w="1" x="1">

                    <mess_header>Graphit</mess_header>

                    <params>

                        <url>/</url>

                        <icon>

                            <img width="143" height="114" alt="Graphit" src="/_data/objects/00170/icon.gif" border="0"/>

                        </icon>

                    </params>

                </message>

                <message id="220" parent_id="181" p_datetime="15.07.2003" p_date="15.07.2003" p_time="09:48" m_date="26.10.2005" m_time="12:32" publish_date="2003-07-15 09:48:00" modify_date="2005-10-26 12:32:47" user_id="1" group_id="2" rg="1" wg="1" xg="1" ro="1" wo="0" xo="0" cnt="0" level="4" priority="001010" r="1" w="1" x="1">

                    <mess_header>Студия Графит</mess_header>

                    <params>

                        <url>/</url>

                        <icon>

                            <img width="201" height="114" alt="Студия Графит" src="/_data/objects/00220/icon.gif" border="0"/>

                        </icon>

                    </params>

                </message>

            </childs>

        </message>

        ...

    </blocks>

    секция icons – иконки, используемые стилями и модулями сайта

    <icons>

        <action>

            <img src="/comm/images/16_1/action_up.gif" action="up" alt="up" alt_ru="выше" width="16" height="8" border="0"/>

            <img src="/_data/objects/00018/ar01.gif" action="ar01" alt="" width="25" height="25" border="0"/>

            ...

        </action>

        <def>

            <img src="/comm/images/16_1/folder_null.gif" def="null" alt="" width="16" height="16" border="0"/>

            <img src="/comm/images/16_1/folder_def.gif" def="def" alt="" width="16" height="16" border="0" lowsrc="/comm/images/16_1/folder_defcur.gif"/>

            ...

        </def>

        <id>

            <img src="/comm/images/16_1/folder_root.gif" id="1" alt="home" alt_ru="главная" width="16" height="16" border="0"/>

            ...

        </id>

        <parent_id>

            <img src="/comm/images/16_1/folder_book.gif" parent_id="5" alt="help" alt_ru="справочники" width="16" height="16" border="0" lowsrc="/comm/images/16_1/folder_book_cur.gif"/>

            ...

        </parent_id>

        <handler>

            <img src="/comm/images/16_1/folder_params.gif" handler="params" alt="params" alt_ru="параметры" width="16" height="16" border="0"/>

            ...

        </handler>

        <param>

            <img src="/comm/images/16_1/folder_url.gif" param="url" alt="" width="16" height="16" border="0"/>

            ...

        </param>

        <file>

            <img src="/comm/images/16_1/file_tmp.gif" file="tmp" width="16" height="16" border="0"/>

            <img src="/comm/images/16_1/file_doc.gif" file="doc" width="16" height="16" border="0"/>

            ...

        </file>

    </icons>

</page>

 

Поиск по документации
Контактная информация
603000, Россия,
г. Нижний Новгород,
ул. Студеная, дом 5,
4-й этаж.
info@graphit.ru

(831) 260–16–32