|
|
|
|
@@ -22,7 +22,7 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
|
|
|
|
|
/* Display: Master */
|
|
|
|
|
$handler = $view->new_display('default', 'Master', 'default');
|
|
|
|
|
$handler->display->display_options['title'] = 'News';
|
|
|
|
|
$handler->display->display_options['title'] = 'Brèves';
|
|
|
|
|
$handler->display->display_options['use_more_always'] = FALSE;
|
|
|
|
|
$handler->display->display_options['use_more_text'] = 'plus';
|
|
|
|
|
$handler->display->display_options['access']['type'] = 'perm';
|
|
|
|
|
@@ -38,33 +38,33 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
$handler->display->display_options['style_plugin'] = 'default';
|
|
|
|
|
$handler->display->display_options['row_plugin'] = 'entity';
|
|
|
|
|
$handler->display->display_options['row_options']['view_mode'] = 'cardbig';
|
|
|
|
|
/* Field: Content: Title */
|
|
|
|
|
/* Champ: Contenu : Titre */
|
|
|
|
|
$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']['word_boundary'] = FALSE;
|
|
|
|
|
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
|
|
|
|
/* Sort criterion: Content: Post date */
|
|
|
|
|
/* Critère de tri: Contenu : Date de publication */
|
|
|
|
|
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
|
|
|
|
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
|
|
|
|
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
|
|
|
|
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
|
|
|
|
/* Filter criterion: Content: Published */
|
|
|
|
|
/* Critère de filtrage: Contenu : Publié */
|
|
|
|
|
$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;
|
|
|
|
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
|
|
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
|
|
|
|
/* Filter criterion: Content: Type */
|
|
|
|
|
/* Critère de filtrage: Contenu : Type */
|
|
|
|
|
$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(
|
|
|
|
|
'breve' => 'breve',
|
|
|
|
|
);
|
|
|
|
|
/* Filter criterion: Workflow: Current state */
|
|
|
|
|
/* Critère de filtrage: Processus : État actuel */
|
|
|
|
|
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
|
|
|
|
@@ -104,28 +104,28 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
|
|
|
|
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
|
|
|
|
$handler->display->display_options['defaults']['filters'] = FALSE;
|
|
|
|
|
/* Filter criterion: Content: Published */
|
|
|
|
|
/* Critère de filtrage: Contenu : Publié */
|
|
|
|
|
$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;
|
|
|
|
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
|
|
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
|
|
|
|
/* Filter criterion: Content: Type */
|
|
|
|
|
/* Critère de filtrage: Contenu : Type */
|
|
|
|
|
$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(
|
|
|
|
|
'simplenews' => 'simplenews',
|
|
|
|
|
);
|
|
|
|
|
/* Filter criterion: Workflow: Current state */
|
|
|
|
|
/* Critère de filtrage: Processus : État actuel */
|
|
|
|
|
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['value'] = array(
|
|
|
|
|
3 => '3',
|
|
|
|
|
);
|
|
|
|
|
/* Filter criterion: Content: Newsletter category (field_simplenews_term) */
|
|
|
|
|
/* Critère de filtrage: Contenu : Newsletter category (field_simplenews_term) */
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['id'] = 'field_simplenews_term_tid';
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['table'] = 'field_data_field_simplenews_term';
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['field'] = 'field_simplenews_term_tid';
|
|
|
|
|
@@ -134,7 +134,7 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
);
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['type'] = 'select';
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['vocabulary'] = 'newsletter';
|
|
|
|
|
/* Filter criterion: Simplenews issue: Sent status */
|
|
|
|
|
/* Critère de filtrage: Parution de lettre d'information : État des envois */
|
|
|
|
|
$handler->display->display_options['filters']['status_1']['id'] = 'status_1';
|
|
|
|
|
$handler->display->display_options['filters']['status_1']['table'] = 'simplenews_newsletter';
|
|
|
|
|
$handler->display->display_options['filters']['status_1']['field'] = 'status';
|
|
|
|
|
@@ -170,28 +170,28 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
|
|
|
|
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
|
|
|
|
$handler->display->display_options['defaults']['filters'] = FALSE;
|
|
|
|
|
/* Filter criterion: Content: Published */
|
|
|
|
|
/* Critère de filtrage: Contenu : Publié */
|
|
|
|
|
$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;
|
|
|
|
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
|
|
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
|
|
|
|
/* Filter criterion: Content: Type */
|
|
|
|
|
/* Critère de filtrage: Contenu : Type */
|
|
|
|
|
$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(
|
|
|
|
|
'simplenews' => 'simplenews',
|
|
|
|
|
);
|
|
|
|
|
/* Filter criterion: Workflow: Current state */
|
|
|
|
|
/* Critère de filtrage: Processus : État actuel */
|
|
|
|
|
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['value'] = array(
|
|
|
|
|
3 => '3',
|
|
|
|
|
);
|
|
|
|
|
/* Filter criterion: Content: Newsletter category (field_simplenews_term) */
|
|
|
|
|
/* Critère de filtrage: Contenu : Newsletter category (field_simplenews_term) */
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['id'] = 'field_simplenews_term_tid';
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['table'] = 'field_data_field_simplenews_term';
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['field'] = 'field_simplenews_term_tid';
|
|
|
|
|
@@ -200,14 +200,14 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
);
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['type'] = 'select';
|
|
|
|
|
$handler->display->display_options['filters']['field_simplenews_term_tid']['vocabulary'] = 'newsletter';
|
|
|
|
|
/* Filter criterion: Simplenews issue: Sent status */
|
|
|
|
|
/* Critère de filtrage: Parution de lettre d'information : État des envois */
|
|
|
|
|
$handler->display->display_options['filters']['status_1']['id'] = 'status_1';
|
|
|
|
|
$handler->display->display_options['filters']['status_1']['table'] = 'simplenews_newsletter';
|
|
|
|
|
$handler->display->display_options['filters']['status_1']['field'] = 'status';
|
|
|
|
|
$handler->display->display_options['filters']['status_1']['value'] = array(
|
|
|
|
|
2 => '2',
|
|
|
|
|
);
|
|
|
|
|
/* Filter criterion: Content: Visible sur la home (field_visible_sur_la_home) */
|
|
|
|
|
/* Critère de filtrage: Contenu : Visible sur la home (field_visible_sur_la_home) */
|
|
|
|
|
$handler->display->display_options['filters']['field_visible_sur_la_home_value']['id'] = 'field_visible_sur_la_home_value';
|
|
|
|
|
$handler->display->display_options['filters']['field_visible_sur_la_home_value']['table'] = 'field_data_field_visible_sur_la_home';
|
|
|
|
|
$handler->display->display_options['filters']['field_visible_sur_la_home_value']['field'] = 'field_visible_sur_la_home_value';
|
|
|
|
|
@@ -227,14 +227,14 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
$handler->display->display_options['allow']['fields_override'] = 0;
|
|
|
|
|
$translatables['news_home_v2'] = array(
|
|
|
|
|
t('Master'),
|
|
|
|
|
t('News'),
|
|
|
|
|
t('Brèves'),
|
|
|
|
|
t('plus'),
|
|
|
|
|
t('Appliquer'),
|
|
|
|
|
t('Réinitialiser'),
|
|
|
|
|
t('Trier par'),
|
|
|
|
|
t('Asc'),
|
|
|
|
|
t('Desc'),
|
|
|
|
|
t('more'),
|
|
|
|
|
t('News'),
|
|
|
|
|
t('home v2'),
|
|
|
|
|
t('daily'),
|
|
|
|
|
t('Daily materiO\''),
|
|
|
|
|
@@ -271,37 +271,37 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
$handler->display->display_options['style_plugin'] = 'default';
|
|
|
|
|
$handler->display->display_options['row_plugin'] = 'entity';
|
|
|
|
|
$handler->display->display_options['row_options']['view_mode'] = 'homeblock';
|
|
|
|
|
/* Field: Content: Title */
|
|
|
|
|
/* Champ: Contenu : Titre */
|
|
|
|
|
$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']['word_boundary'] = FALSE;
|
|
|
|
|
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
|
|
|
|
/* Sort criterion: Content: weight (field_weight) */
|
|
|
|
|
/* 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';
|
|
|
|
|
/* Sort criterion: Content: Post date */
|
|
|
|
|
/* Critère de tri: Contenu : Date de publication */
|
|
|
|
|
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
|
|
|
|
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
|
|
|
|
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
|
|
|
|
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
|
|
|
|
/* Filter criterion: Content: Published */
|
|
|
|
|
/* Critère de filtrage: Contenu : Publié */
|
|
|
|
|
$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;
|
|
|
|
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
|
|
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
|
|
|
|
/* Filter criterion: Content: Type */
|
|
|
|
|
/* Critère de filtrage: Contenu : Type */
|
|
|
|
|
$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(
|
|
|
|
|
'publication' => 'publication',
|
|
|
|
|
);
|
|
|
|
|
/* Filter criterion: Workflow: Current state */
|
|
|
|
|
/* Critère de filtrage: Processus : État actuel */
|
|
|
|
|
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
|
|
|
|
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
|
|
|
|
@@ -323,7 +323,6 @@ function materio_home_v2_views_default_views() {
|
|
|
|
|
t('Trier par'),
|
|
|
|
|
t('Asc'),
|
|
|
|
|
t('Desc'),
|
|
|
|
|
t('more'),
|
|
|
|
|
t('Home v2'),
|
|
|
|
|
);
|
|
|
|
|
$export['publication_home_v2'] = $view;
|
|
|
|
|
|