added weight field to publications

This commit is contained in:
Bachir Soussi Chiadmi
2015-06-14 19:35:34 +02:00
parent 678343b0e9
commit 3add8f6b96
5 changed files with 167 additions and 10 deletions

View File

@@ -270,6 +270,10 @@ function materio_home_v2_views_default_views() {
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Critère de tri: Contenu : weight (field_weight) */
$handler->display->display_options['sorts']['field_weight_value']['id'] = 'field_weight_value';
$handler->display->display_options['sorts']['field_weight_value']['table'] = 'field_data_field_weight';
$handler->display->display_options['sorts']['field_weight_value']['field'] = 'field_weight_value';
/* Critère de tri: Contenu : Date de publication */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';