20/11/2011, 16:04
|
| | Fecha de Ingreso: mayo-2007
Mensajes: 419
Antigüedad: 17 años, 6 meses Puntos: 20 | |
Respuesta: Problema con vista de categorias para blog Hola Mario,
acabo de exportar la lista para que tengas una idea de lo que estoy haciendo, talvez asi ves que hago mal
Código:
$view = new view;
$view->name = 'categorias_blog';
$view->description = 'View para las categorias del blog';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Categorias Blog';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Categorias';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: Blog tags */
$handler->display->display_options['fields']['field_blog_tags']['id'] = 'field_blog_tags';
$handler->display->display_options['fields']['field_blog_tags']['table'] = 'field_data_field_blog_tags';
$handler->display->display_options['fields']['field_blog_tags']['field'] = 'field_blog_tags';
$handler->display->display_options['fields']['field_blog_tags']['label'] = '';
$handler->display->display_options['fields']['field_blog_tags']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_blog_tags']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_blog_tags']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_blog_tags']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_blog_tags']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['field_blog_tags']['group_rows'] = 1;
$handler->display->display_options['fields']['field_blog_tags']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_blog_tags']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['delta_first_last'] = 0;
$handler->display->display_options['fields']['field_blog_tags']['multi_type'] = 'ol';
$handler->display->display_options['fields']['field_blog_tags']['field_api_classes'] = 0;
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Sort criterion: Content: Blog tags (field_blog_tags) */
$handler->display->display_options['sorts']['field_blog_tags_tid']['id'] = 'field_blog_tags_tid';
$handler->display->display_options['sorts']['field_blog_tags_tid']['table'] = 'field_data_field_blog_tags';
$handler->display->display_options['sorts']['field_blog_tags_tid']['field'] = 'field_blog_tags_tid';
/* Contextual filter: Content: Blog tags (field_blog_tags) */
$handler->display->display_options['arguments']['field_blog_tags_tid']['id'] = 'field_blog_tags_tid';
$handler->display->display_options['arguments']['field_blog_tags_tid']['table'] = 'field_data_field_blog_tags';
$handler->display->display_options['arguments']['field_blog_tags_tid']['field'] = 'field_blog_tags_tid';
$handler->display->display_options['arguments']['field_blog_tags_tid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_blog_tags_tid']['summary']['format'] = 'default_summary';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 0;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Blog tags (field_blog_tags:delta) */
$handler->display->display_options['filters']['delta']['id'] = 'delta';
$handler->display->display_options['filters']['delta']['table'] = 'field_data_field_blog_tags';
$handler->display->display_options['filters']['delta']['field'] = 'delta';
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
$handler->display->display_options['defaults']['query'] = FALSE;
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['distinct'] = TRUE;
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['grouping'] = 'field_blog_tags';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'field_blog_tags' => 'field_blog_tags',
);
$handler->display->display_options['row_options']['hide_empty'] = 1;
$handler->display->display_options['row_options']['default_field_elements'] = 1;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['sorts'] = FALSE;
/* Sort criterion: Content: Blog tags (field_blog_tags) */
$handler->display->display_options['sorts']['field_blog_tags_tid']['id'] = 'field_blog_tags_tid';
$handler->display->display_options['sorts']['field_blog_tags_tid']['table'] = 'field_data_field_blog_tags';
$handler->display->display_options['sorts']['field_blog_tags_tid']['field'] = 'field_blog_tags_tid';
$handler->display->display_options['sorts']['field_blog_tags_tid']['order'] = 'DESC';
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Blog tags (field_blog_tags) */
$handler->display->display_options['arguments']['field_blog_tags_tid']['id'] = 'field_blog_tags_tid';
$handler->display->display_options['arguments']['field_blog_tags_tid']['table'] = 'field_data_field_blog_tags';
$handler->display->display_options['arguments']['field_blog_tags_tid']['field'] = 'field_blog_tags_tid';
$handler->display->display_options['arguments']['field_blog_tags_tid']['title_enable'] = 1;
$handler->display->display_options['arguments']['field_blog_tags_tid']['title'] = '%1';
$handler->display->display_options['arguments']['field_blog_tags_tid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_blog_tags_tid']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['field_blog_tags_tid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_blog_tags_tid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_blog_tags_tid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['field_blog_tags_tid']['break_phrase'] = 0;
$handler->display->display_options['arguments']['field_blog_tags_tid']['not'] = 1;
$handler->display->display_options['defaults']['filters'] = FALSE;
VISTA PARTE 1 |