Sziasztok!
Sikerült megoldani a Felfedett szűrés szótár alapján, köszönöm a segítséget! A megoldást végül a Hierarchical Select modul jelentette.
Szeretnék azonban létrehozni egy oldalt a views modullal, ahol kilistázom csoportosítva az akadálymentes helyeket. Ez még megy is, csak az a gond, hogy ha valamely node-hoz több kifejezést is társítok (pl: Üzletek, Számítástechnika, Honlap), akkor annyiszor ismétlődik a node címe. Valahogy szeretném korlátozni, hogy csak a szülő kifejezések alapján listázzon. Jelenleg így néz ki a views-em:
$view = new view; $view->name = 'ide_konnyen_begurulhatsz'; $view->description = ''; $view->tag = 'default'; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 3.0-alpha1; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ /* Display: Alapértelmezések */ $handler = $view->new_display('default', 'Alapértelmezések', 'default'); $handler->display->display_options['access']['type'] = 'none'; $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['exposed_form']['type'] = 'basic'; $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Alkalmaz'; $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Alaphelyzet'; $handler->display->display_options['pager']['type'] = 'full'; $handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Elemek száma oldalanként'; $handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Eltolás'; $handler->display->display_options['style_plugin'] = 'list'; $handler->display->display_options['style_options']['grouping'] = 'name'; $handler->display->display_options['row_plugin'] = 'fields'; /* Mező: Tartalom: Cím */ $handler->display->display_options['fields']['title']['id'] = 'title'; $handler->display->display_options['fields']['title']['table'] = 'node'; $handler->display->display_options['fields']['title']['field'] = 'title'; $handler->display->display_options['fields']['title']['label'] = ''; $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; $handler->display->display_options['fields']['title']['alter']['trim'] = 0; $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['title']['alter']['html'] = 0; $handler->display->display_options['fields']['title']['hide_empty'] = 0; $handler->display->display_options['fields']['title']['empty_zero'] = 0; $handler->display->display_options['fields']['title']['link_to_node'] = 0; /* Mező: Tartalom: Törzs */ $handler->display->display_options['fields']['body']['id'] = 'body'; $handler->display->display_options['fields']['body']['table'] = 'node_revisions'; $handler->display->display_options['fields']['body']['field'] = 'body'; $handler->display->display_options['fields']['body']['label'] = ''; $handler->display->display_options['fields']['body']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['body']['alter']['make_link'] = 0; $handler->display->display_options['fields']['body']['alter']['trim'] = 0; $handler->display->display_options['fields']['body']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['body']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['body']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['body']['alter']['html'] = 0; $handler->display->display_options['fields']['body']['hide_empty'] = 1; $handler->display->display_options['fields']['body']['empty_zero'] = 0; /* Mező: Taxonómia: Kifejezés */ $handler->display->display_options['fields']['name']['id'] = 'name'; $handler->display->display_options['fields']['name']['table'] = 'term_data'; $handler->display->display_options['fields']['name']['field'] = 'name'; $handler->display->display_options['fields']['name']['label'] = ''; $handler->display->display_options['fields']['name']['exclude'] = TRUE; $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['name']['alter']['make_link'] = 0; $handler->display->display_options['fields']['name']['alter']['trim'] = 0; $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['name']['alter']['html'] = 0; $handler->display->display_options['fields']['name']['hide_empty'] = 0; $handler->display->display_options['fields']['name']['empty_zero'] = 0; $handler->display->display_options['fields']['name']['link_to_taxonomy'] = 1; /* Mező: Taxonómia: Minden kifejezés */ $handler->display->display_options['fields']['tid']['id'] = 'tid'; $handler->display->display_options['fields']['tid']['table'] = 'term_node'; $handler->display->display_options['fields']['tid']['field'] = 'tid'; $handler->display->display_options['fields']['tid']['label'] = ''; $handler->display->display_options['fields']['tid']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['tid']['alter']['make_link'] = 0; $handler->display->display_options['fields']['tid']['alter']['trim'] = 0; $handler->display->display_options['fields']['tid']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['tid']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['tid']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['tid']['alter']['html'] = 0; $handler->display->display_options['fields']['tid']['hide_empty'] = 1; $handler->display->display_options['fields']['tid']['empty_zero'] = 0; $handler->display->display_options['fields']['tid']['link_to_taxonomy'] = 1; $handler->display->display_options['fields']['tid']['limit'] = 1; $handler->display->display_options['fields']['tid']['vids'] = array( '6' => 6, '2' => 0, ); /* Szűrő: Tartalom: Közzétett */ $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'; /* Szűrő: Tartalom: Típus */ $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( 'places' => 'places', ); /* Szűrő: Taxonómia: Szótár */ $handler->display->display_options['filters']['vid']['id'] = 'vid'; $handler->display->display_options['filters']['vid']['table'] = 'term_data'; $handler->display->display_options['filters']['vid']['field'] = 'vid'; $handler->display->display_options['filters']['vid']['value'] = array( '6' => '6', ); /* Szűrő: Taxonómia: Kifejezés azonosító (súllyal) */ $handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth'; $handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node'; $handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth'; $handler->display->display_options['filters']['term_node_tid_depth']['exposed'] = TRUE; $handler->display->display_options['filters']['term_node_tid_depth']['expose']['operator'] = 'term_node_tid_depth_op'; $handler->display->display_options['filters']['term_node_tid_depth']['expose']['label'] = 'Válassz szűrési feltételt'; $handler->display->display_options['filters']['term_node_tid_depth']['expose']['use_operator'] = 0; $handler->display->display_options['filters']['term_node_tid_depth']['expose']['identifier'] = 'term_node_tid_depth'; $handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'hierarchical_select'; $handler->display->display_options['filters']['term_node_tid_depth']['vid'] = '6'; $handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '0'; /* Display: Oldal */ $handler = $view->new_display('page', 'Oldal', 'page_1'); $handler->display->display_options['path'] = 'akadalymentes-hely';
Hogyan módosítsam, hogy csak a szülő kifejezéseket vegye alapul?
Előre is köszönöm!
Drupal verzió:
Fórum: