name = 'search_listing'; $view->description = 'Atrium > Search listing'; $view->tag = 'atrium'; $view->base_table = 'node'; $view->core = 0; $view->api_version = '2'; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'feature' => array( 'label' => '', 'link_to_node' => 0, 'exclude' => 0, 'id' => 'feature', 'table' => 'spaces_node', 'field' => 'feature', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'body' => array( 'label' => 'Body', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '250', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 1, 'html' => 0, ), 'exclude' => 0, 'id' => 'body', 'table' => 'node_revisions', 'field' => 'body', 'relationship' => 'none', ), 'name' => array( 'label' => 'Author', 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'last_updated' => array( 'label' => 'Last post', 'date_format' => 'reldate', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'changed' => array( 'order' => 'DESC', 'granularity' => 'year', 'id' => 'changed', 'table' => 'node', 'field' => 'changed', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'score' => array( 'order' => 'DESC', 'id' => 'score', 'table' => 'search_index', 'field' => 'score', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'created_year_month' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Search results (%1)', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'created_year_month', 'table' => 'node', 'field' => 'created_year_month', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => 'all', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 5 => 0, 1 => 0, 2 => 0, 6 => 0, 4 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_is_member' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('filters', array( 'keys' => array( 'operator' => 'required', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'keys_op', 'identifier' => 'keys', 'label' => 'Search', 'optional' => 0, 'remember' => 1, ), 'id' => 'keys', 'table' => 'search_index', 'field' => 'keys', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'current' => array( 'operator' => 'active', 'value' => 'all', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'type_op', 'identifier' => 'type', 'label' => 'Type', 'optional' => 1, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'created' => array( 'operator' => '>', 'value' => array( 'type' => 'offset', 'value' => '-180 days', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'created_op', 'identifier' => 'created', 'label' => 'Posted up to', 'optional' => 1, 'remember' => 1, ), 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'access content', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Search'); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'asc', 'columns' => array( 'filename' => 'filename', 'title' => 'filename', 'last_updated' => 'last_updated', ), 'info' => array( 'filename' => array( 'sortable' => 0, 'separator' => '
', ), 'title' => array( 'sortable' => 0, 'separator' => '', ), 'last_updated' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'search/posts'); $handler->override_option('menu', array( 'type' => 'default tab', 'title' => 'Posts', 'description' => '', 'weight' => '-1', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => 'Search', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler = $view->new_display('page', 'Page', 'page_2'); $handler->override_option('relationships', array( 'upload_fid' => array( 'label' => 'Files', 'required' => 1, 'id' => 'upload_fid', 'table' => 'node', 'field' => 'upload_fid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'filename' => array( 'label' => 'Filename', 'link_to_file' => 1, 'exclude' => 0, 'id' => 'filename', 'table' => 'files', 'field' => 'filename', 'relationship' => 'upload_fid', 'override' => array( 'button' => 'Use default', ), ), 'title' => array( 'label' => 'Title', 'alter' => array( 'alter_text' => 1, 'text' => '[title]', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'spaces' => array( 'frontpage' => 0, 'type' => 'spaces_og', ), 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), 'last_updated' => array( 'label' => 'Last post', 'date_format' => 'reldate', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', 'relationship' => 'none', ), )); $handler->override_option('path', 'search/files'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Files', 'description' => '', 'weight' => '1', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $translatables['search_listing'] = array( t('Defaults'), t('Page'), t('Search'), ); $views[$view->name] = $view; // Exported view: taxonomy_listing $view = new view; $view->name = 'taxonomy_listing'; $view->description = 'Atrium > Taxonomy term override'; $view->tag = 'atrium'; $view->base_table = 'node'; $view->core = 0; $view->api_version = '2'; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'feature' => array( 'label' => '', 'link_to_node' => 0, 'exclude' => 0, 'id' => 'feature', 'table' => 'spaces_node', 'field' => 'feature', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'body' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '150', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 1, 'html' => 0, ), 'exclude' => 0, 'id' => 'body', 'table' => 'node_revisions', 'field' => 'body', 'relationship' => 'none', ), 'name' => array( 'label' => 'Author', 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'last_updated' => array( 'label' => 'Last post', 'date_format' => 'reldate', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', '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('arguments', array( 'tid' => array( 'default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Tagged "%1"', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'add_table' => 0, 'require_value' => 0, 'reduce_duplicates' => 0, 'set_breadcrumb' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 5 => 0, 1 => 0, 2 => 0, 6 => 0, 4 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_is_member' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Override', ), ), 'created_year_month' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Tagged: %1 (%2)', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'created_year_month', 'table' => 'node', 'field' => 'created_year_month', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 5 => 0, 1 => 0, 2 => 0, 6 => 0, 4 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_is_member' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'current' => array( 'operator' => 'active', 'value' => 'all', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'access content', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('empty', 'There is no content tagged with this term.'); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'feature' => 'feature', 'title' => 'title', 'body' => 'title', 'name' => 'name', 'last_updated' => 'last_updated', ), 'info' => array( 'feature' => array( 'separator' => '', ), 'title' => array( 'sortable' => 0, 'separator' => '
', ), 'body' => array( 'separator' => '', ), 'name' => array( 'sortable' => 0, 'separator' => '', ), 'last_updated' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Posts', 'page_1'); $handler->override_option('path', 'taxonomy/term/%/posts'); $handler->override_option('menu', array( 'type' => 'default tab', 'title' => 'Posts', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => 'Tags', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler = $view->new_display('block', 'Archive block', 'block_1'); $handler->override_option('arguments', array( 'tid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'php', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'add_table' => 0, 'require_value' => 0, 'reduce_duplicates' => 0, 'set_breadcrumb' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => 'if (is_numeric(arg(2))) { return arg(2); }', 'validate_argument_node_type' => array( 'blog' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 5 => 0, 1 => 0, 2 => 0, 6 => 0, 4 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_is_member' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Use default', ), ), 'created_year_month' => array( 'default_action' => 'summary desc', 'style_plugin' => 'default_summary', 'style_options' => array( 'count' => 1, 'override' => 0, 'items_per_page' => '25', ), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'created_year_month', 'table' => 'node', 'field' => 'created_year_month', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'book' => 0, 'event' => 0, 'feedapi_node' => 0, 'feed_ical' => 0, 'feed_ical_item' => 0, 'group' => 0, 'page' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( 5 => 0, 1 => 0, 2 => 0, 6 => 0, 4 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_is_member' => 0, 'validate_argument_php' => '', 'override' => array( 'button' => 'Use default', ), ), )); $handler->override_option('title', 'Archive'); $handler->override_option('empty', ''); $handler->override_option('items_per_page', 0); $handler->override_option('use_pager', '0'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1); $handler = $view->new_display('page', 'Files', 'page_2'); $handler->override_option('relationships', array( 'upload_fid' => array( 'label' => 'Files', 'required' => 1, 'id' => 'upload_fid', 'table' => 'node', 'field' => 'upload_fid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'filemime' => array( 'label' => 'Type', 'link_to_file' => 1, 'exclude' => 0, 'id' => 'filemime', 'table' => 'files', 'field' => 'filemime', 'relationship' => 'upload_fid', 'override' => array( 'button' => 'Use default', ), ), 'filename' => array( 'label' => 'Filename', 'link_to_file' => 1, 'exclude' => 0, 'id' => 'filename', 'table' => 'files', 'field' => 'filename', 'relationship' => 'upload_fid', 'override' => array( 'button' => 'Use default', ), ), 'title' => array( 'label' => 'Post', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'last_updated' => array( 'label' => 'Last post', 'date_format' => 'reldate', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('empty', 'There are no files tagged with this term.'); $handler->override_option('path', 'taxonomy/term/%/files'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Files', 'description' => '', 'weight' => '1', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $translatables['taxonomy_listing'] = array( t('Archive'), t('Archive block'), t('Defaults'), t('Files'), t('Posts'), t('There are no files tagged with this term.'), t('There is no content tagged with this term.'), ); $views[$view->name] = $view; return $views; }