Posted by afreytes on December 19, 2006 at 8:31pm
Jump to:
| Project: | Views |
| Version: | 4.7.x-1.3 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I've searched quite a bit here, but found nothing, so I finally decided to post an issue and see if anyone can help me.
My drupal site http://www.indeleble.com pretends to register politicians information along with quotes from each. Both politicians, and quotes, are special content nodes created with CCK. Now, I wanted to provide a page view as a tab on the individual politician's node so the user can see every quote entered into the system from any given politician's page.
All of the above works fine (I think)...
But now I've got the "quotes" tab showing on the front page!
The question is: ¿How can I stop Views module from showing tabs in the frontpage?
Comments
#1
Sorry the website is http://www.indeleble.org. Many thanks in advance.
Here's the export of the view:
$view = new stdClass();$view->name = 'politician_quotes';
$view->description = 'Lists all quotes for a politician';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = '%1';
$view->page_header = 'An overview of all votes cast for this piece of content.';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'table';
$view->url = 'node/$arg/quotes';
$view->use_pager = FALSE;
$view->nodes_per_page = '0';
$view->menu = TRUE;
$view->menu_title = 'quotes';
$view->menu_tab = TRUE;
$view->menu_tab_default = FALSE;
$view->menu_tab_weight = '0';
$view->sort = array (
array (
'tablename' => 'votingapi_cache',
'field' => 'value',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array (
array (
'type' => 'content: field_politician',
'argdefault' => '6',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Action',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node_data_field_politician',
'field' => 'field_politician_nid',
'label' => 'Politician',
'options' => 'default',
),
array (
'tablename' => 'node_comment_statistics',
'field' => 'comment_count',
'label' => 'Comments',
'handler' => 'views_handler_field_int',
'sortable' => '1',
),
array (
'tablename' => 'votingapi_cache',
'field' => 'value',
'label' => 'Voting',
'sortable' => '1',
'defaultsort' => 'DESC',
'options' => 'a:3:{s:10:"value_type";s:6:"points";s:3:"tag";s:4:"vote";s:8:"function";s:3:"sum";}',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '\'1\'',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => 'array (
0 => \'content_quote\',
)',
),
array (
'tablename' => 'node',
'field' => 'distinct',
'operator' => '=',
'options' => '',
'value' => 'array (
)',
),
);
$view->exposed_filter = array (
);
$view->requires = array(votingapi_cache, node, node_data_field_politician, node_comment_statistics);
$views[$view->name] = $view;
#2
Oi! How irritating.
I'm guessing the reason for this is that you're using the default frontpage, which is 'node'.
You might have some luck changing your default frontpage to 'frontpage' which is provided by Views and is the same thing.
#3
Thanks merlin, you were exactly right...