complete refactoring of thematique list display : entityfieldquery + viewmode

This commit is contained in:
2017-02-10 18:06:32 +01:00
parent 46db2145e5
commit 30577d3c6b
11 changed files with 1000 additions and 98 deletions
@@ -10,6 +10,93 @@
function clameurs_field_group_info() {
$field_groups = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_body|node|thematique|teaser';
$field_group->group_name = 'group_body';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'teaser';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Body',
'weight' => '0',
'children' => array(
0 => 'body',
),
'format_type' => 'html5',
'format_settings' => array(
'label' => 'Body',
'instance_settings' => array(
'id' => '',
'classes' => 'group-body field-group-html5',
'wrapper' => 'section',
),
),
);
$field_groups['group_body|node|thematique|teaser'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_bottom|node|thematique|accueil';
$field_group->group_name = 'group_bottom';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'accueil';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'bottom',
'weight' => '2',
'children' => array(
0 => 'field_episodes',
),
'format_type' => 'html5',
'format_settings' => array(
'label' => 'bottom',
'instance_settings' => array(
'id' => '',
'classes' => 'bottom',
'wrapper' => 'aside',
),
),
);
$field_groups['group_bottom|node|thematique|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_description|node|thematique|accueil';
$field_group->group_name = 'group_description';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'accueil';
$field_group->parent_name = 'group_video';
$field_group->data = array(
'label' => 'description',
'weight' => '9',
'children' => array(
0 => 'field_description',
1 => 'field_ecouter',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'description',
'instance_settings' => array(
'id' => '',
'classes' => 'group-description field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$field_groups['group_description|node|thematique|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@@ -21,7 +108,7 @@ function clameurs_field_group_info() {
$field_group->parent_name = 'group_htabs';
$field_group->data = array(
'label' => 'Éclairages',
'weight' => '10',
'weight' => '108',
'children' => array(
0 => 'field_eclairages',
),
@@ -49,7 +136,7 @@ function clameurs_field_group_info() {
$field_group->parent_name = 'group_htabs';
$field_group->data = array(
'label' => 'Épisodes',
'weight' => '9',
'weight' => '107',
'children' => array(
0 => 'field_episodes',
),
@@ -129,7 +216,7 @@ function clameurs_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'htabs',
'weight' => '1',
'weight' => '2',
'children' => array(
0 => 'group_video',
1 => 'group_texte',
@@ -146,6 +233,61 @@ function clameurs_field_group_info() {
);
$field_groups['group_htabs|node|thematique|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_main|node|thematique|accueil';
$field_group->group_name = 'group_main';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'accueil';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'main',
'weight' => '0',
'children' => array(
0 => 'group_txt',
1 => 'group_video',
),
'format_type' => 'html5',
'format_settings' => array(
'label' => 'main',
'instance_settings' => array(
'id' => '',
'classes' => 'main',
'wrapper' => 'article',
),
),
);
$field_groups['group_main|node|thematique|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_right|node|thematique|accueil';
$field_group->group_name = 'group_right';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'accueil';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'right',
'weight' => '1',
'children' => array(
0 => 'field_eclairages',
),
'format_type' => 'html5',
'format_settings' => array(
'label' => 'right',
'instance_settings' => array(
'id' => '',
'classes' => 'right',
'wrapper' => 'aside',
),
),
);
$field_groups['group_right|node|thematique|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@@ -213,7 +355,7 @@ function clameurs_field_group_info() {
$field_group->parent_name = 'group_htabs';
$field_group->data = array(
'label' => 'Texte',
'weight' => '7',
'weight' => '105',
'children' => array(
0 => 'body',
),
@@ -229,6 +371,135 @@ function clameurs_field_group_info() {
);
$field_groups['group_texte|node|thematique|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_txt|node|documentair|accueil';
$field_group->group_name = 'group_txt';
$field_group->entity_type = 'node';
$field_group->bundle = 'documentair';
$field_group->mode = 'accueil';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'txt',
'weight' => '1',
'children' => array(
0 => 'field_doc',
1 => 'title_field',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'txt',
'instance_settings' => array(
'id' => '',
'classes' => 'group-txt field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$field_groups['group_txt|node|documentair|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_txt|node|episode|accueil';
$field_group->group_name = 'group_txt';
$field_group->entity_type = 'node';
$field_group->bundle = 'episode';
$field_group->mode = 'accueil';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'txt',
'weight' => '1',
'children' => array(
0 => 'title_field',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'txt',
'instance_settings' => array(
'id' => '',
'classes' => 'group-txt field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$field_groups['group_txt|node|episode|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_txt|node|thematique|accueil';
$field_group->group_name = 'group_txt';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'accueil';
$field_group->parent_name = 'group_main';
$field_group->data = array(
'label' => 'txt',
'weight' => '1',
'children' => array(
0 => 'body',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'txt',
'instance_settings' => array(
'id' => '',
'classes' => 'group-txt field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$field_groups['group_txt|node|thematique|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_video|node|documentair|accueil';
$field_group->group_name = 'group_video';
$field_group->entity_type = 'node';
$field_group->bundle = 'documentair';
$field_group->mode = 'accueil';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'video',
'weight' => '2',
'children' => array(
0 => 'field_emvideo',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'video',
'instance_settings' => array(
'id' => '',
'classes' => 'group-video field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$field_groups['group_video|node|documentair|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@@ -259,6 +530,38 @@ function clameurs_field_group_info() {
);
$field_groups['group_video|node|documentair|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_video|node|episode|accueil';
$field_group->group_name = 'group_video';
$field_group->entity_type = 'node';
$field_group->bundle = 'episode';
$field_group->mode = 'accueil';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Video',
'weight' => '2',
'children' => array(
0 => 'field_emvideo',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'Video',
'instance_settings' => array(
'id' => '',
'classes' => 'group-video field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$field_groups['group_video|node|episode|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@@ -289,6 +592,39 @@ function clameurs_field_group_info() {
);
$field_groups['group_video|node|episode|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_video|node|thematique|accueil';
$field_group->group_name = 'group_video';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'accueil';
$field_group->parent_name = 'group_main';
$field_group->data = array(
'label' => 'video',
'weight' => '2',
'children' => array(
0 => 'field_emvideo',
1 => 'group_description',
),
'format_type' => 'div',
'format_settings' => array(
'label' => 'video',
'instance_settings' => array(
'id' => '',
'classes' => 'group-video field-group-div',
'description' => '',
'show_label' => '0',
'label_element' => 'h3',
'effect' => 'none',
'speed' => 'fast',
),
'formatter' => 'open',
),
);
$field_groups['group_video|node|thematique|accueil'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@@ -300,11 +636,10 @@ function clameurs_field_group_info() {
$field_group->parent_name = 'group_htabs';
$field_group->data = array(
'label' => 'Video',
'weight' => '8',
'weight' => '106',
'children' => array(
0 => 'field_video',
1 => 'field_description',
2 => 'field_emvideo',
0 => 'field_description',
1 => 'field_emvideo',
),
'format_type' => 'htab',
'format_settings' => array(
@@ -319,11 +654,46 @@ function clameurs_field_group_info() {
);
$field_groups['group_video|node|thematique|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_video|node|thematique|teaser';
$field_group->group_name = 'group_video';
$field_group->entity_type = 'node';
$field_group->bundle = 'thematique';
$field_group->mode = 'teaser';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'video',
'weight' => '1',
'children' => array(
0 => 'field_description',
1 => 'field_emvideo',
),
'format_type' => 'html5',
'format_settings' => array(
'formatter' => '',
'instance_settings' => array(
'wrapper' => '',
'classes' => 'group-video field-group-html5',
'id' => '',
),
),
);
$field_groups['group_video|node|thematique|teaser'] = $field_group;
// Translatables
// Included for use with string extractors like potx.
t('Body');
t('Texte');
t('Video');
t('bottom');
t('description');
t('htabs');
t('main');
t('right');
t('txt');
t('video');
t('Éclairages');
t('Épisodes');