Glossary mostra risultati con lettera A di default

3 contenuti / 0 new
Ultimo contenuto
Glossary mostra risultati con lettera A di default

Ciao,
Ho un problema con "glossary" nel senso che quando gli assegno un vocabolario, se non ci sono contenuti con la lettera A, mostra solo la lista orizzontale delle lettere (ed è così che lo voglio...) mentre, se c'è un contenuto che inizia con la A mi mostra l'elenco sotto dei contenuti (A).

Come devo fare per "bloccare l'elenco" dei contenuti con lettera A ma, visualizzarlo solo quando clicco la lettera "indice" del glossay?

Grazie

Ciao
kipper

La vista Glossary è configurabile con l'argomento di default per la prima schermata. Non so se sia possibile fare così, ma prova a inserire una stringa "impossibile" in quell'opzione.

Grazie Pinolo per i consigli...

Ho risolto, ecco la View:

$view = new view;
$view->name = 'glossary_importatore';
$view->description = 'A list of all content, by letter.';
$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(
  'title' => array(
    'label' => 'Title',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => '20',
    'default_argument_php' => '',
    'validate_argument_vocabulary' => array(
      '23' => 0,
      '24' => 0,
      '25' => 0,
      '26' => 0,
      '27' => 0,
      '28' => 0,
      '29' => 0,
      '1' => 0,
      '30' => 0,
      '34' => 0,
      '35' => 0,
      '36' => 0,
      '38' => 0,
      '37' => 0,
      '2' => 0,
      '3' => 0,
      '4' => 0,
      '6' => 0,
      '7' => 0,
      '9' => 0,
      '17' => 0,
      '11' => 0,
      '10' => 0,
      '21' => 0,
      '22' => 0,
      '20' => 0,
      '13' => 0,
      '19' => 0,
      '12' => 0,
      '8' => 0,
      '18' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '3' => 0,
    ),
    'default_options_div_prefix' => '',
    'validate_argument_node_type' => array(
      'panel' => 0,
      'glossary' => 0,
      'insert_views' => 0,
      'newsletter' => 0,
      'page' => 0,
      'story' => 0,
      'usato' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'vid' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'id' => 'vid',
    'table' => 'vocabulary',
    'field' => 'vid',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '3' => 0,
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '20',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'panel' => 0,
      'glossary' => 0,
      'insert_views' => 0,
      'newsletter' => 0,
      'page' => 0,
      'story' => 0,
      'usato' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '23' => 0,
      '24' => 0,
      '25' => 0,
      '26' => 0,
      '27' => 0,
      '28' => 0,
      '29' => 0,
      '1' => 0,
      '30' => 0,
      '34' => 0,
      '35' => 0,
      '36' => 0,
      '38' => 0,
      '37' => 0,
      '2' => 0,
      '3' => 0,
      '4' => 0,
      '6' => 0,
      '7' => 0,
      '9' => 0,
      '17' => 0,
      '11' => 0,
      '10' => 0,
      '21' => 0,
      '22' => 0,
      '20' => 0,
      '13' => 0,
      '19' => 0,
      '12' => 0,
      '8' => 0,
      '18' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_php' => '',
    'override' => array(
      'button' => 'Override',
    ),
  ),
));
$handler->override_option('filters', array(
  'vid' => array(
    'operator' => 'in',
    'value' => array(
      '20' => '20',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'vid',
    'table' => 'term_data',
    'field' => 'vid',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('use_ajax', '1');
$handler->override_option('items_per_page', 36);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'name' => 'name',
    'changed' => 'changed',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'name' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'changed' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => 'title',
));
$handler = $view->new_display('page', 'Page', 'page');
$handler->override_option('path', 'importatore');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Glossary',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));
$handler = $view->new_display('attachment', 'Attachment', 'attachment');
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'summary asc',
    'style_plugin' => 'unformatted_summary',
    'style_options' => array(
      'count' => 1,
      'override' => 0,
      'items_per_page' => '25',
      'inline' => 1,
      'separator' => ' | ',
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => 'a',
    'validate_argument_vocabulary' => array(),
    'validate_argument_php' => '',
  ),
));
$handler->override_option('attachment_position', 'before');
$handler->override_option('inherit_arguments', 0);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('displays', array(
  'default' => 'default',
  'page' => 'page',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);

Ciao
Kipper