Данные страницы
Данные страницы для шаблона
Элементы массива страницы доступны в массиве $page для страниц этого типа ($uri.action = category).
Массив страницы содержит следующие элементы:
Array ( [action] => category [active] => 1 [alias] => page_20 [all_results] => 210 [blocks] => Array ( отдельная страница описания ) [bottom_categs_ids] => Array ( [0] => 183 [1] => 184 ) [breadcrumbs] => Array ( [0] => Array ( [0] => Array ( [id] => 91 [title] => Каталог [id_parent] => 89 [parent_title] => [parent_alias] => [icon] => [sortby] => date_insert desc [star] => 1 [visible] => 1 [alias] => shop [shop] => 0 [sort] => 2 [intro] => [date_insert] => 2017-03-29 00:00:01 [date_update] => 2018-01-27 03:33:19 [pubs] => 0 [products] => 0 [child_categs] => 11 [level] => 1 [active] => 0 [padding] => 0 [link] => http://simpla.es/shop/ [link_idn] => http://simpla.es/shop/ [pic] => Array ( [1] => Array ( ) [2] => Array ( [id] => 3782 [ext] => jpg [width] => 255 [height] => 194 [url] => http://simpla.es/upload/records/3782.jpg ) [3] => Array ( [id] => 3784 [ext] => jpg [width] => 290 [height] => 290 [url] => http://simpla.es/upload/records/3784.jpg ) [4] => Array ( [id] => 3784 [ext] => jpg [width] => 290 [height] => 290 [url] => http://simpla.es/upload/records/3784.jpg ) ) ) ) ) [content] => [date_insert] => 2017-03-29 00:00:01 [date_update] => 2018-03-18 17:41:18 [description] => Телевизоры [f_spec] => 0 [filters] => Array ( [power] => Array ( [id] => 28 [title] => Мощность [alias] => power [sort] => 2 [group_id] => 6 [type] => int [show_in_filter] => 1 [filter_type] => select [show_in_list] => 1 [filter_description] => Потребляемая мощность [after] => кВт [icon] => [to_show] => all [value_min] => 1.50 [value_max] => 15.50 [values] => Array ( [0] => Array ( [id] => 3218 [id_option] => 28 [id_product] => 187 [value] => 1.5 [where_placed] => product [value2] => [value3] => [qty] => 15 [checked] => 1 ) [1] => Array ( [id] => 2376 [id_option] => 28 [id_product] => 126 [value] => 2.0 [where_placed] => product [value2] => [value3] => [qty] => 42 [checked] => ) [2] => Array ( [id] => 4283 [id_option] => 28 [id_product] => 253 [value] => 2.05 [where_placed] => product [value2] => [value3] => [qty] => 7 [checked] => ) ) ) [shum] => Array ( [id] => 71 [title] => Уровень шума [alias] => shum [sort] => 8 [group_id] => 7 [type] => int [show_in_filter] => 1 [filter_type] => text [show_in_list] => 1 [filter_description] => [after] => Дб [icon] => [to_show] => all [value_min] => 28.00 [value_max] => 51.00 ) [price] => Array ( [value_min] => 11887 [value_max] => 353766 ) ) [icon] => [id] => 102 [id_parent] => 93 [idn] => http://simpla.es/page_20/ [ids] => Array ( [0] => 183 [1] => 184 [2] => 185 ) [in_last] => 0 [intro] => [keywords] => Телевизоры [link] => http://simpla.es/page_20/ [list_bottomcategs] => Array ( отедьная страница описания ) [list_files] => Array ( отедьная страница описания ) [list_options] => Array ( отедьная страница описания ) [list_photos] => Array ( отедьная страница описания ) [list_products] => Array ( отедьная страница описания ) [list_pubs] => Array ( отдельная страница описания ) [list_topcategs] => Array ( [92] => Array ( [id] => 92 [title] => Каталог [id_parent] => 89 [parent_title] => [parent_alias] => [icon] => [sortby] => date_insert desc [star] => 0 [visible] => 1 [alias] => catalog [shop] => 0 [sort] => 1 [intro] => [date_insert] => 2017-03-29 00:00:01 [date_update] => 2017-08-10 20:00:51 [pubs] => 0 [products] => 0 [child_categs] => 6 [level] => 1 [active] => 0 [padding] => 0 [link] => http://simpla.es/catalog/ [link_idn] => http://simpla.es/catalog/ [pic] => Array ( [1] => Array ( ) [2] => Array ( [id] => 3788 [ext] => jpg [width] => 255 [height] => 194 [url] => http://simpla.es/upload/records/3788.jpg ) [3] => Array ( [id] => 3790 [ext] => jpg [width] => 290 [height] => 290 [url] => http://simpla.es/upload/records/3790.jpg ) [4] => Array ( [id] => 3790 [ext] => jpg [width] => 290 [height] => 290 [url] => http://simpla.es/upload/records/3790.jpg ) ) ) ) [metatitle] => Телевизоры [page] => price.html [price_max] => 353766 [price_min] => 11887 [products_ids] => Array ( [0] => 195 [1] => 196 [2] => 197 ) [qty_bottomcategs] => 4 [qty_comments] => 0 [qty_files] => 1 [qty_options] => 5 [qty_photos] => 1 [qty_products] => 136 [qty_pubs] => 0 [qty_topcategs] => 8 [requested_filter] => [shop] => 1 [show_filter] => 1 [sort] => 3 [sortby] => name [title] => Телевизоры [title_options] => Array ( [list] => Array ( [power] => Array ( [id_product] => 118 [title] => Мощность [value] => 4.0 [after] => кВт [icon] => [type] => int [group] => 6 [alias] => power [opt_title] => Общие характеристики [to_show] => all [opt_value1] => [opt_value2] => [opt_value3] => [value2] => [value3] => [group_title] => Телевизоры ) ) ) [title_parent] => Каталог [user_id] => 200 [value_max] => 353766 [value_min] => 11887 )
Данные собираются в функции get_categ.
Характеристики страницы
Если на странице добавлены характеристики, то они выводятся в массиве $page.properties
Array ( [xxx] => Array ( [id] => 123 [title] => Название [value] => 1 [code] => xxx ) )
Если создано несколько характеристик с одном кодом, то они будут находиться все вместе в массиве, где ключом будет этот код
Array ( [XXX] => Array ( [0] => Array ( [id] => 401 [title] => Важная [value] => Да [code] => XXX ) [1] => Array ( [id] => 398 [title] => Поделиться [value] => Да [code] => XXX ) ) )