+ Telepítés

WindowsLinuxMac

+ Keresés

Kifejezések block-ba url alapján

Mityusz képe

Régóta keresgélek már, voltak hasonló témák, de mégsem sikerült megfejteni a dolgot ezért konkretizálok inkább.
Az Image Gallery-val létrehozott galéria oldalakon (amik ugye sima term-ek) szeretném block-ban megjeleníteni a hozzá tartozó albumok (szintén term-ek) listáját.
Sok taxonomy modul után a Views modullal próbálkoztam Argumentumok szerint, ami majdnem jó is, csak az a gond, hogy annyiszor listáz egy kifejezést, ahány node van benne. Hiába van a Distinct igen-re állítva.
Mi lenne a jó megoldás?

Drupal verzió: 
aboros képe

és kopizzad ide az export be a vágólapod segítségével és akkor egyből látjuk mit csináltál. különben 20 kérdésem lenne. :)

0
0

-
clear: both;

Mityusz képe

<?php
$view = new view;
$view->name = 'galeria_blokk';
$view->description = 'A view to emulate Drupal core\'s handling of taxonomy/term; it also emulates Views 1\'s handling by having two possible feeds.';
$view->tag = 'default';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'name' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_taxonomy' => 1,
'exclude' => 0,
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'sticky' => array(
'id' => 'sticky',
'table' => 'node',
'field' => 'sticky',
'order' => 'DESC',
'relationship' => 'none',
),
'created' => array(
'id' => 'created',
'table' => 'node',
'field' => 'created',
'order' => 'DESC',
'granularity' => 'second',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'term_node_tid_depth' => array(
'default_action' => 'not found',
'style_plugin' => 'default_summary',
'style_options' => array(
'count' => TRUE,
'override' => FALSE,
'items_per_page' => 25,
),
'wildcard' => 'all',
'wildcard_substitution' => 'Minden',
'title' => '%1%2%3',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'taxonomy_term',
'validate_fail' => 'ignore',
'depth' => '3',
'break_phrase' => 1,
'set_breadcrumb' => 0,
'id' => 'term_node_tid_depth',
'table' => 'node',
'field' => 'term_node_tid_depth',
'relationship' => 'none',
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'weblinks' => 0,
'image' => 0,
'page' => 0,
'story' => 0,
),
'validate_argument_vocabulary' => array(
'3' => 3,
'2' => 0,
),
'validate_argument_type' => 'name',
'validate_argument_php' => '',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'3' => 0,
),
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('filters', array(
'status_extra' => array(
'id' => 'status_extra',
'table' => 'node',
'field' => 'status_extra',
'operator' => '=',
'value' => '',
'group' => 0,
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
'role' => array(),
'perm' => '',
));
$handler->override_option('use_pager', '1');
$handler->override_option('distinct', 1);
$handler->override_option('style_options', array(
'grouping' => '',
));
$handler->override_option('row_options', array(
'inline' => array(),
'separator' => '',
));
$handler = $view->new_display('block', 'Blokk', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
?>

0
0