$view = new view; $view->name = 'taxonomy_term'; $view->description = 'A view to emulate Drupal core\'s handling of taxonomy/term; it also emulates Views 1\'s handling by having two possible feeds.'; $view->tag = 'default'; $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', 'Defaults', 'default'); $handler->override_option('relationships', array( 'field_blog_author_uid' => array( 'id' => 'field_blog_author_uid', 'table' => 'node_data_field_blog_author', 'field' => 'field_blog_author_uid', ), )); $handler->override_option('fields', array( 'tid' => array( 'label' => 'All terms', 'alter' => array( 'alter_text' => 0, 'text' => '', '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, 'type' => 'ul', 'separator' => ', ', 'link_to_taxonomy' => 1, 'limit' => 1, 'vids' => array( '1' => 1, '2' => 0, ), 'exclude' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'sticky' => array( 'id' => 'sticky', 'table' => 'node', 'field' => 'sticky', 'order' => 'DESC', 'relationship' => 'none', ), 'created' => array( 'id' => 'created', 'table' => 'node', 'field' => 'created', 'order' => 'DESC', 'granularity' => 'second', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'term_node_tid_depth' => array( 'id' => 'term_node_tid_depth', 'table' => 'node', 'field' => 'term_node_tid_depth', 'default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array( 'count' => TRUE, 'override' => FALSE, 'items_per_page' => 25, ), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '%1', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'taxonomy_term', 'validate_fail' => 'not found', 'depth' => '0', 'break_phrase' => 1, 'relationship' => 'none', 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'album' => 0, 'artist' => 0, 'book' => 0, 'page' => 0, 'story' => 0, 'track' => 0, ), 'validate_argument_vocabulary' => array( '3' => 0, '4' => 0, '1' => 0, '5' => 0, '2' => 0, ), 'validate_argument_type' => 'tids', 'validate_argument_php' => '', ), 'term_node_tid_depth_modifier' => array( 'id' => 'term_node_tid_depth_modifier', 'table' => 'node', 'field' => 'term_node_tid_depth_modifier', 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array( 'count' => TRUE, 'override' => FALSE, 'items_per_page' => 25, ), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', ), )); $handler->override_option('filters', array( 'status_extra' => array( 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'operator' => '=', 'value' => '', 'group' => 0, 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'relationship' => 'none', ), 'language' => array( 'operator' => 'in', 'value' => array( '***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'language', 'table' => 'node', 'field' => 'language', 'relationship' => 'none', ), 'sid' => array( 'operator' => 'in', 'value' => array( '12' => '12', '16' => '16', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'sid', 'table' => 'workflow_node', 'field' => 'sid', 'relationship' => 'none', ), 'vid' => array( 'operator' => 'in', 'value' => array(), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'vid', 'table' => 'term_data', 'field' => 'vid', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => '', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('use_pager', '1'); $handler->override_option('link_display', 'page'); $handler->override_option('style_plugin', 'semanticviews_default'); $handler->override_option('style_options', array( 'group' => array( 'element_type' => 'h3', 'class' => 'title', ), 'list' => array( 'element_type' => '', 'class' => '', ), 'row' => array( 'element_type' => 'div', 'class' => 'row', 'last_every_nth' => '0', 'first_class' => 'first', 'last_class' => 'last', 'striping_classes' => 'odd even', ), )); $handler->override_option('row_plugin', 'ds'); $handler->override_option('row_options', array( 'build_mode' => 'teaser', 'advanced' => 0, )); $handler = $view->new_display('page', 'Page', 'page'); $handler->override_option('relationships', array( 'field_blog_author_uid' => array( 'label' => 'Author', 'required' => 0, 'delta' => -1, 'id' => 'field_blog_author_uid', 'table' => 'node_data_field_blog_author', 'field' => 'field_blog_author_uid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'nid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', '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, 'exclude' => 1, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'created' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', '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, 'date_format' => 'small', 'custom_date_format' => 'd / m / Y', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', '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' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', '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, 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'view_node' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => 'Read more >', 'make_link' => 1, 'path' => 'node/[nid]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 0, 'ellipsis' => 0, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => '', 'exclude' => 0, 'id' => 'view_node', 'table' => 'node', 'field' => 'view_node', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'value' => array( 'label' => 'By', 'alter' => array( 'alter_text' => 0, 'text' => '', '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_user' => 1, 'exclude' => 0, 'id' => 'value', 'table' => 'profile_values_profile_fullname', 'field' => 'value', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'field_blog_author_uid', ), 'tid' => array( 'label' => 'in', 'alter' => array( 'alter_text' => 0, 'text' => '', '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, 'type' => 'separator', 'separator' => ', ', 'link_to_taxonomy' => 1, 'limit' => 1, 'vids' => array( '1' => 1, '2' => 2, ), 'exclude' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'comments_link' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', '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, 'teaser' => 1, 'exclude' => 0, 'id' => 'comments_link', 'table' => 'node', 'field' => 'comments_link', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status_extra' => array( 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'operator' => '=', 'value' => '', 'group' => 0, 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'relationship' => 'none', ), 'language' => array( 'operator' => 'in', 'value' => array( '***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'language', 'table' => 'node', 'field' => 'language', 'relationship' => 'none', ), 'sid' => array( 'operator' => 'in', 'value' => array( '12' => '12', '16' => '16', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'sid', 'table' => 'workflow_node', 'field' => 'sid', 'relationship' => 'none', ), 'vid' => array( 'operator' => 'in', 'value' => array( '1' => '1', '2' => '2', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'vid', 'table' => 'term_data', 'field' => 'vid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('row_plugin', 'semanticviews_fields'); $handler->override_option('row_options', array( 'semantic_html' => array( 'created' => array( 'element_type' => 'div', 'class' => 'teaser-date', ), 'title' => array( 'element_type' => 'div', 'class' => 'teaser-title', ), 'teaser' => array( 'element_type' => 'div', 'class' => 'teaser-teaser', ), 'view_node' => array( 'element_type' => 'div', 'class' => 'teaser-readmore', ), 'value' => array( 'element_type' => 'div', 'class' => 'teaser-author', 'label_element_type' => 'label', 'label_class' => 'teaser-author-label', ), 'tid' => array( 'element_type' => 'div', 'class' => 'teaser-category', 'label_element_type' => 'label', 'label_class' => 'teaser-category-label', ), 'comments_link' => array( 'element_type' => 'div', 'class' => 'teaser-addcomment', ), ), 'skip_blank' => 0, )); $handler->override_option('path', 'taxonomy/term/%'); $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, 'name' => 'navigation', )); $handler = $view->new_display('feed', 'Core feed', 'feed'); $handler->override_option('items_per_page', 15); $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', 'taxonomy/term/%/%/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, 'name' => 'navigation', )); $handler->override_option('displays', array( 'default' => 0, 'page' => 0, 'block_1' => 0, )); $handler->override_option('sitename_title', FALSE); $handler = $view->new_display('feed', 'Views 1 feed', 'feed_1'); $handler->override_option('items_per_page', 15); $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', 'taxonomy/term/%/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, 'name' => 'navigation', )); $handler->override_option('displays', array()); $handler->override_option('sitename_title', FALSE); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('sorts', array( 'created' => array( 'id' => 'created', 'table' => 'node', 'field' => 'created', 'order' => 'DESC', 'granularity' => 'second', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'tid' => array( 'default_action' => 'summary asc', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '%1', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'taxonomy_term', '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', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '8' => 0, '6' => 0, '4' => 0, '7' => 0, '5' => 0, ), 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_fixed' => '', 'default_argument_user' => 0, 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 'blog', 'sitenotes' => 0, 'page' => 0, ), 'validate_argument_node_access' => 1, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 1, '2' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'blog' => 'blog', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'language' => array( 'operator' => 'in', 'value' => array( '***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'language', 'table' => 'node', 'field' => 'language', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'sid' => array( 'operator' => 'in', 'value' => array( '12' => '12', '16' => '16', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'sid', 'table' => 'workflow_node', 'field' => 'sid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'vid' => array( 'operator' => 'in', 'value' => array( '1' => '1', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'vid', 'table' => 'term_data', 'field' => 'vid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('style_plugin', 'list'); $handler->override_option('style_options', array( 'type' => 'ul', )); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'relationship' => 'none', 'build_mode' => 'teaser', 'links' => 0, 'comments' => 0, )); $handler->override_option('block_description', 'Category block'); $handler->override_option('block_caching', -1); $handler = $view->new_display('feed', 'Feed: all blog posts', 'feed_2'); $handler->override_option('arguments', array()); $handler->override_option('filters', array( 'status_extra' => array( 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'operator' => '=', 'value' => '', 'group' => 0, 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'relationship' => 'none', ), 'language' => array( 'operator' => 'in', 'value' => array( '***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'language', 'table' => 'node', 'field' => 'language', 'relationship' => 'none', ), 'sid' => array( 'operator' => 'in', 'value' => array( '12' => '12', '16' => '16', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'sid', 'table' => 'workflow_node', 'field' => 'sid', 'relationship' => 'none', ), 'vid' => array( 'operator' => 'in', 'value' => array(), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'vid', 'table' => 'term_data', 'field' => 'vid', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'blog' => 'blog', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('items_per_page', 25); $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( 'relationship' => 'none', 'item_length' => 'teaser', )); $handler->override_option('path', 'blogs/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, 'name' => 'navigation', )); $handler->override_option('displays', array( 'page' => 'page', 'default' => 0, 'block_1' => 0, )); $handler->override_option('sitename_title', FALSE);