Sziasztok!
Egy olyan "kisebb" problémával szenvedek már jóideje, hogy letöltöttem a drupal.org-ról a views cloud modult, és elkezdtem beállítgatni.
A blokk része működik is már rendesen, viszont ha a blokkban rákattintok egy szóra, akkor a megadott oldalon megintcsak ugyan az a kulcsszó jelenik meg, és újbóli rákattintásra jön(nek) elő a kulcsszóhoz tartozó node-ok.
Ehhez kéne nekem valami segítség hogy milyen is a megfelelő beállítás, mert már a maradék hajamat is kitéptem, de sehogysem boldogulok vele.
Csakhogy bizonyítsam az amatőrködésemet, bemásolom a views "kódját".
$view = new view; $view->name = 'cloud'; $view->description = 'Tag cloud'; $view->tag = ''; $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( 'created' => array( 'label' => 'Post date', 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), 'name' => array( 'label' => 'Term', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', '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('arguments', array( 'name' => array( 'default_action' => 'summary asc', 'style_plugin' => 'cloud_summary', 'style_options' => array( 'count' => 0, 'override' => 0, 'items_per_page' => '25', 'randomize' => 1, ), 'wildcard' => 'all', 'wildcard_substitution' => 'Minden', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'add_table' => 0, 'require_value' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'feed' => 0, 'page' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '2' => 0, '3' => 0, '4' => 0, '5' => 0, '6' => 0, '7' => 0, '8' => 0, '9' => 0, '10' => 0, '11' => 0, '12' => 0, '13' => 0, '14' => 0, '15' => 0, '16' => 0, '17' => 0, '18' => 0, '19' => 0, '20' => 0, '21' => 0, '22' => 0, '23' => 0, '24' => 0, '25' => 0, '26' => 0, '27' => 0, '28' => 0, '29' => 0, '30' => 0, '31' => 0, '32' => 0, '33' => 0, '34' => 0, '35' => 0, '36' => 0, '37' => 0, '38' => 0, '39' => 0, '1' => 0, '40' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Címkék'); $handler->override_option('items_per_page', 0); $handler->override_option('use_more', 1); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'cloud'); $handler->override_option('style_options', array( 'grouping' => '', 'weight_field' => 'created', 'hide_weight_field' => 1, 'randomize' => 1, )); $handler->override_option('exposed_block', TRUE); $handler = $view->new_display('block', 'Blokk', 'block_1'); $handler->override_option('items_per_page', 20); $handler->override_option('use_more_text', '<br /><b>TOVÁBBI CÍMKÉK »»»</b>'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('fields', array( 'created' => array( 'label' => 'Post date', 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), 'name' => array( 'label' => 'Term', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', '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' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'name' => array( 'order' => 'ASC', 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'name' => array( 'default_action' => 'summary asc', 'style_plugin' => 'cloud_summary', 'style_options' => array( 'count' => 0, 'override' => 0, 'items_per_page' => '25', 'randomize' => 1, ), 'wildcard' => 'all', 'wildcard_substitution' => 'Minden', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'add_table' => 0, 'require_value' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'webform' => 0, 'poll' => 0, 'image' => 0, 'artablazat' => 0, 'focim' => 0, 'oneletrajz' => 0, 'page' => 0, 'profile' => 0, 'simplenews' => 0, 'story' => 0, 'tananyag' => 0, 'tartalom_munkaadoknak' => 0, 'tartalom_munkavallaloknak' => 0, 'tudasbazis' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '3' => 3, '2' => 2, '1' => 1, '7' => 7, '8' => 8, ), 'validate_argument_type' => 'name', 'validate_argument_php' => '', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '6' => 0, ), 'override' => array( 'button' => 'Use default', ), 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, ), )); $handler->override_option('style_options', array( 'grouping' => 'name', 'weight_field' => 'created', 'hide_weight_field' => 1, 'randomize' => 1, )); $handler->override_option('path', 'cimkek/%'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));
Előre is köszönöm a segítséget :-)
Melyik modulhoz, modulokhoz kapcsolódik a téma?:
Drupal verzió:
Fórum:
utvonal
milyen utvonalat latsz a bongeszod cimsoraban amikor eloszor rakattintasz es mit latsz amikor masodszor?