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
@@ -230,6 +230,12 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
'default' => array(
'label' => 'hidden',
'module' => 'text',
@@ -275,6 +281,12 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
'default' => array(
'label' => 'above',
'module' => 'text',
@@ -321,6 +333,15 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
@@ -369,6 +390,19 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'video_embed_field_overlay',
'settings' => array(
'description' => 1,
'image_style' => 'video_thumb_docu',
'overlay' => 'dom-window',
'show_thumbnail' => 1,
'video_style' => 'normal',
),
'type' => 'video_embed_field_overlay',
'weight' => 5,
),
'default' => array(
'label' => 'above',
'module' => 'video_embed_field',
@@ -424,6 +458,12 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 5,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
@@ -461,6 +501,56 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-documentair-title_field'.
$field_instances['node-documentair-title_field'] = array(
'bundle' => 'documentair',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'title_field',
'label' => 'Titre',
'required' => TRUE,
'settings' => array(
'entity_translation_sync' => FALSE,
'hide_label' => array(
'entity' => FALSE,
'page' => FALSE,
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => -5,
),
);
// Exported field_instance: 'node-episode-body'.
$field_instances['node-episode-body'] = array(
'bundle' => 'episode',
@@ -468,6 +558,12 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
'default' => array(
'label' => 'hidden',
'module' => 'text',
@@ -513,6 +609,12 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 7,
),
'default' => array(
'label' => 'above',
'module' => 'text',
@@ -559,6 +661,19 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'video_embed_field_overlay',
'settings' => array(
'description' => 1,
'image_style' => 'video_thumb_episode',
'overlay' => 'dom-window',
'show_thumbnail' => 1,
'video_style' => 'normal',
),
'type' => 'video_embed_field_overlay',
'weight' => 9,
),
'default' => array(
'label' => 'above',
'module' => 'video_embed_field',
@@ -614,6 +729,12 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
@@ -668,6 +789,12 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 8,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
@@ -705,6 +832,56 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-episode-title_field'.
$field_instances['node-episode-title_field'] = array(
'bundle' => 'episode',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 3,
),
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'title_field',
'label' => 'Titre',
'required' => TRUE,
'settings' => array(
'entity_translation_sync' => FALSE,
'hide_label' => array(
'entity' => FALSE,
'page' => FALSE,
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => -5,
),
);
// Exported field_instance: 'node-thematique-body'.
$field_instances['node-thematique-body'] = array(
'bundle' => 'thematique',
@@ -712,6 +889,13 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 3,
),
'default' => array(
'label' => 'hidden',
'module' => 'text',
@@ -722,11 +906,9 @@ function clameurs_field_default_field_instances() {
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 0,
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'entity_type' => 'node',
@@ -757,6 +939,13 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 11,
),
'default' => array(
'label' => 'above',
'module' => 'text',
@@ -765,10 +954,11 @@ function clameurs_field_default_field_instances() {
'weight' => 2,
),
'teaser' => array(
'label' => 'above',
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
'type' => 'text_default',
'weight' => 9,
),
),
'entity_type' => 'node',
@@ -803,6 +993,17 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'links' => 0,
'use_content_language' => 1,
'view_mode' => 'accueil',
),
'type' => 'entityreference_entity_view',
'weight' => 6,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
@@ -816,7 +1017,7 @@ function clameurs_field_default_field_instances() {
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
'weight' => 7,
),
),
'entity_type' => 'node',
@@ -847,6 +1048,13 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_plain',
'weight' => 10,
),
'default' => array(
'label' => 'above',
'module' => 'taxonomy',
@@ -858,7 +1066,7 @@ function clameurs_field_default_field_instances() {
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
'weight' => 6,
),
),
'entity_type' => 'node',
@@ -878,7 +1086,7 @@ function clameurs_field_default_field_instances() {
'formatter_settings' => array(),
),
'type' => 'field_extrawidgets_read_only',
'weight' => 9,
'weight' => 5,
),
);
@@ -889,6 +1097,19 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'video_embed_field_overlay',
'settings' => array(
'description' => 1,
'image_style' => 'video_thumb_themat',
'overlay' => 'dom-window',
'show_thumbnail' => 1,
'video_style' => 'normal',
),
'type' => 'video_embed_field_overlay',
'weight' => 8,
),
'default' => array(
'label' => 'above',
'module' => 'video_embed_field',
@@ -901,10 +1122,17 @@ function clameurs_field_default_field_instances() {
'weight' => 7,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
'label' => 'hidden',
'module' => 'video_embed_field_overlay',
'settings' => array(
'description' => 1,
'image_style' => 'video_thumb_themat',
'overlay' => 'dom-window',
'show_thumbnail' => 1,
'video_style' => 'normal',
),
'type' => 'video_embed_field_overlay',
'weight' => 8,
),
),
'entity_type' => 'node',
@@ -916,7 +1144,7 @@ function clameurs_field_default_field_instances() {
'vimeo' => 'vimeo',
'youtube' => 'youtube',
),
'description_field' => 1,
'description_field' => 0,
'description_length' => 128,
'entity_translation_sync' => FALSE,
'user_register_form' => FALSE,
@@ -937,6 +1165,17 @@ function clameurs_field_default_field_instances() {
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'links' => 0,
'use_content_language' => 1,
'view_mode' => 'accueil',
),
'type' => 'entityreference_entity_view',
'weight' => 5,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
@@ -947,10 +1186,10 @@ function clameurs_field_default_field_instances() {
'weight' => 3,
),
'teaser' => array(
'label' => 'above',
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
'weight' => 2,
),
),
'entity_type' => 'node',
@@ -974,6 +1213,63 @@ function clameurs_field_default_field_instances() {
),
);
// Exported field_instance: 'node-thematique-field_poid'.
$field_instances['node-thematique-field_poid'] = array(
'bundle' => 'thematique',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'accueil' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 7,
),
'default' => array(
'label' => 'above',
'module' => 'number',
'settings' => array(
'decimal_separator' => '.',
'prefix_suffix' => TRUE,
'scale' => 0,
'thousand_separator' => '',
),
'type' => 'number_integer',
'weight' => 8,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 8,
),
),
'entity_type' => 'node',
'field_name' => 'field_poid',
'label' => 'Poid',
'required' => 1,
'settings' => array(
'entity_translation_sync' => FALSE,
'max' => 10,
'min' => 0,
'prefix' => '',
'suffix' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'number',
'settings' => array(),
'type' => 'number',
'weight' => 1,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Bidirectional');
@@ -984,8 +1280,10 @@ function clameurs_field_default_field_instances() {
t('Habiter');
t('Left Field');
t('Legende');
t('Poid');
t('Right Field');
t('Thématique');
t('Titre');
t('Video');
t('Weight');
t('Écouter');