Возникла такая проблема: админ регистрирует user и выбирает в какой категории в таксномию его отнести, как мне построить вюху для отображения user по категориям (user это определенные фирмы)
импортните себе этот вьюс.
вьюс группирует фотки по категориям. Вам нужно будет выбрать свой словарь и вместо полей ноды - поля профиля.
скрин того что у меня - http://clip2net.com/s/5XweWW
Комментарии
$view->name = 'galery';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Галерея работ';
$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'] = 'Галерея работ';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['use_more_text'] = 'ещё';
$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['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Применить';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Сбросить';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Сортировать по';
$handler->display->display_options['exposed_form']['options']['sort_asc_label'] = 'По возрастанию';
$handler->display->display_options['exposed_form']['options']['sort_desc_label'] = 'По убыванию';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '100';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['grouping'] = array(
0 => array(
'field' => 'field_galery_categories',
'rendered' => 1,
'rendered_strip' => 0,
),
);
$handler->display->display_options['style_options']['row_class'] = 'views-row';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['style_options']['columns'] = array(
'field_galery_categories' => 'field_galery_categories',
'field_photo_model' => 'field_photo_model',
'field_video_model' => 'field_video_model',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'field_galery_categories' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_photo_model' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 1,
),
'field_video_model' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 1,
),
);
$handler->display->display_options['style_options']['override'] = FALSE;
/* Поле: Содержимое: Категория галереи */
$handler->display->display_options['fields']['field_galery_categories']['id'] = 'field_galery_categories';
$handler->display->display_options['fields']['field_galery_categories']['table'] = 'field_data_field_galery_categories';
$handler->display->display_options['fields']['field_galery_categories']['field'] = 'field_galery_categories';
$handler->display->display_options['fields']['field_galery_categories']['label'] = '';
$handler->display->display_options['fields']['field_galery_categories']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_galery_categories']['element_label_colon'] = FALSE;
/* Поле: Содержимое: Фото модели */
$handler->display->display_options['fields']['field_photo_model']['id'] = 'field_photo_model';
$handler->display->display_options['fields']['field_photo_model']['table'] = 'field_data_field_photo_model';
$handler->display->display_options['fields']['field_photo_model']['field'] = 'field_photo_model';
$handler->display->display_options['fields']['field_photo_model']['label'] = '';
$handler->display->display_options['fields']['field_photo_model']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_photo_model']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_photo_model']['type'] = 'colorbox';
$handler->display->display_options['fields']['field_photo_model']['settings'] = array(
'colorbox_node_style' => 'thumbnail',
'colorbox_image_style' => '',
'colorbox_gallery' => 'post',
'colorbox_gallery_custom' => '',
'colorbox_caption' => 'auto',
'colorbox_caption_custom' => '',
);
/* Поле: Содержимое: Видео о модели */
$handler->display->display_options['fields']['field_video_model']['id'] = 'field_video_model';
$handler->display->display_options['fields']['field_video_model']['table'] = 'field_data_field_video_model';
$handler->display->display_options['fields']['field_video_model']['field'] = 'field_video_model';
$handler->display->display_options['fields']['field_video_model']['label'] = '';
$handler->display->display_options['fields']['field_video_model']['alter']['text'] = '[field_video_model]';
$handler->display->display_options['fields']['field_video_model']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_video_model']['alter']['path'] = '[field_video_model-video_url]';
$handler->display->display_options['fields']['field_video_model']['alter']['link_class'] = 'video-url';
$handler->display->display_options['fields']['field_video_model']['alter']['target'] = '_blank';
$handler->display->display_options['fields']['field_video_model']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_video_model']['click_sort_column'] = 'video_url';
$handler->display->display_options['fields']['field_video_model']['type'] = 'video_embed_field_thumbnail';
$handler->display->display_options['fields']['field_video_model']['settings'] = array(
'image_style' => '',
'image_link' => '',
);
/* Критерий сортировки: Содержимое: Дата публикации */
$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';
/* Критерий фильтра: Содержимое: Опубликовано */
$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'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Критерий фильтра: Содержимое: Тип */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'galery' => 'galery',
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'galery';
$translatables['galery'] = array(
t('Master'),
t('Галерея работ'),
t('ещё'),
t('Применить'),
t('Сбросить'),
t('Сортировать по'),
t('По возрастанию'),
t('По убыванию'),
t('[field_video_model]'),
t('Page'),
);
импортните себе этот вьюс.
вьюс группирует фотки по категориям. Вам нужно будет выбрать свой словарь и вместо полей ноды - поля профиля.
скрин того что у меня - http://clip2net.com/s/5XweWW