$view = new view; $view->name = 'ng01_tracker'; $view->description = 'Shows active posts across the site.'; $view->tag = 'og, tracker, site'; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Site Tracker', 'default'); $handler->override_option('fields', array( 'title' => array( 'id' => 'title', 'table' => 'node', 'field' => 'title', 'label' => 'Title', 'relationship' => 'none', 'link_to_node' => 1, ), 'timestamp' => array( 'id' => 'timestamp', 'table' => 'history_user', 'field' => 'timestamp', 'label' => '', 'comments' => 1, 'relationship' => 'none', 'link_to_node' => 0, ), 'totalcount' => array( 'label' => 'Просмотров', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => '\'', 'prefix' => ' ', 'suffix' => ' ', 'exclude' => 0, 'id' => 'totalcount', 'table' => 'node_counter', 'field' => 'totalcount', 'relationship' => 'none', ), 'name' => array( 'label' => ' Автор ', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'comment_count' => array( 'id' => 'comment_count', 'table' => 'node_comment_statistics', 'field' => 'comment_count', 'label' => 'Replies', 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'prefix' => '', 'suffix' => '', 'relationship' => 'none', ), 'new_comments' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => '\'', 'prefix' => '', 'suffix' => ' новых', 'link_to_comment' => 1, 'no_empty' => 1, 'exclude' => 0, 'id' => 'new_comments', 'table' => 'node', 'field' => 'new_comments', 'relationship' => 'none', ), 'last_updated' => array( 'label' => 'Последнее', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '10', 'word_boundary' => 1, 'ellipsis' => 0, 'strip_tags' => 0, 'html' => 1, ), 'date_format' => 'medium', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', 'relationship' => 'none', ), 'last_comment_name' => array( 'label' => 'Автор посл. сообщения', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => TRUE, 'exclude' => 0, 'id' => 'last_comment_name', 'table' => 'node_comment_statistics', 'field' => 'last_comment_name', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'last_updated' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'id' => 'status', 'table' => 'node', 'field' => 'status', 'operator' => '=', 'value' => 1, 'group' => 0, 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'relationship' => 'none', 'expose_button' => array( 'button' => 'Expose', ), ), 'current_all' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => '', 'label' => 'На этом сайте / На всех сайтах', 'identifier' => 'site_all', 'optional' => 0, 'remember' => 1, ), 'id' => 'current_all', 'table' => 'domain_access', 'field' => 'current_all', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Последние публикации на этом сайте'); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', '1'); $handler->override_option('use_more', 0); $handler->override_option('use_more_text', 'подробнее'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'desc', 'columns' => array( 'group_nid' => 'group_nid', 'title' => 'title', 'timestamp' => 'title', 'totalcount' => 'totalcount', 'name' => 'name', 'comment_count' => 'comment_count', 'new_comments' => 'comment_count', 'last_updated' => 'last_updated', 'last_comment_name' => 'last_updated', ), 'info' => array( 'group_nid' => array( 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => ' ', ), 'timestamp' => array( 'separator' => '', ), 'totalcount' => array( 'sortable' => 1, 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => '', ), 'comment_count' => array( 'sortable' => 1, 'separator' => '
', ), 'new_comments' => array( 'separator' => '', ), 'last_updated' => array( 'sortable' => 1, 'separator' => '
автор: ', ), 'last_comment_name' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => 'last_updated', )); $handler = $view->new_display('page', 'Page', 'page'); $handler->override_option('path', 'trackers/site/all'); $handler->override_option('menu', array( 'type' => 'default tab', 'title' => 'Все материалы', 'description' => 'Последнии публикации на этом сайте', 'weight' => '2', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'tab', 'title' => 'На этом сайте', 'description' => 'Последнии публикации на этом сайте', 'weight' => '2', )); $handler = $view->new_display('feed', 'Feed', 'feed'); $handler->override_option('style_plugin', 'rss'); $handler->override_option('style_options', array( 'mission_description' => FALSE, 'description' => '', )); $handler->override_option('row_plugin', 'node_rss'); $handler->override_option('row_options', array( 'item_length' => 'default', )); $handler->override_option('path', 'group/tracker/feed'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler->override_option('displays', array( 'page' => 'page', 'default' => 0, )); $handler->override_option('sitename_title', FALSE);