Closed (fixed)
Project:
Relevant Content
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2008 at 13:57 UTC
Updated:
9 Oct 2008 at 10:52 UTC
Hi Nicholas,
Stunning module and thank you!
Nicholas, something strange. I got this following block as 'relevant content' to work next to a specific type of content (article).
$view = new stdClass();
$view->name = 'new_members';
$view->description = 'New members';
$view->access = array (
);
$view->view_args_php = 'if ($type==\'block\' && arg(0) == \'node\' && is_numeric(arg(1))){
$node=node_load(arg(1));
$terms = taxonomy_node_get_terms_by_vocabulary($node->nid, 1, $key = \'tid\'); // 1 is the vid of my vocab
foreach($terms as $term){
$country = $term->tid;
}
$args[0] = $country;
return $args;
}';
$view->page = FALSE;
$view->page_title = '';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'node';
$view->url = '';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->block = TRUE;
$view->block_title = 'New Members';
$view->block_header = '';
$view->block_header_format = '1';
$view->block_footer = '';
$view->block_footer_format = '1';
$view->block_empty = '';
$view->block_empty_format = '1';
$view->block_type = 'table';
$view->nodes_per_block = '10';
$view->block_more = FALSE;
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'created',
'sortorder' => 'DESC',
'options' => 'normal',
),
);
$view->argument = array (
array (
'type' => 'taxid',
'argdefault' => '2',
'title' => '',
'options' => '1',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'taxletter',
'argdefault' => '2',
'title' => '',
'options' => '1',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'users',
'field' => 'name',
'label' => '',
),
array (
'tablename' => 'node_data_field_lastname',
'field' => 'field_lastname_value',
'label' => '',
'handler' => 'content_views_field_handler_group',
'options' => 'default',
),
array (
'tablename' => 'term_node_1',
'field' => 'name',
'label' => '',
'options' => 'link',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'profile',
),
),
array (
'tablename' => 'node',
'field' => 'distinct',
'operator' => '=',
'options' => '',
'value' => array (
0 => 'distinct',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, users, node_data_field_lastname, term_node_1);
$views[$view->name] = $view;
In the article categories are selected : South Africa and Commercials
When I click on the title of the article only the members that are from South Africa appear .. beautiful!
When I click on South Africa (or in fact on any category) on Articles all members appear :(
How can that be that your module 'relevant content' obeys the article title, but not the category. Is it not the same thing?
Look forward to any reply, and again, thank you.
Lilian
Comments
Comment #1
nicholasthompsonI'm thoroughly confused what this means... Whats wrong here? Can you please try explaining again... Or mark as fixed if its not a problem anymore (sorry for the delay in response, have been really busy recently).
Comment #2
nicholasthompsonNo reply for a LONG time... Assuming fixed?
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.