Browse Source

fixed présentation node nid in edlp_home

Bachir Soussi Chiadmi 7 years ago
parent
commit
7dcdddf9de

+ 2 - 1
sites/all/modules/figli/edlp_home/src/Controller/HomeController.php

@@ -23,7 +23,8 @@ class HomeController extends ControllerBase {
     // presentation
     // presentation
     $query = \Drupal::entityQuery('node')
     $query = \Drupal::entityQuery('node')
       ->condition('status', 1)
       ->condition('status', 1)
-      ->condition('nid', 5890);
+      ->condition('nid', 12238);
+    // TODO: présentation nid should be a setting
 
 
     $pres_nid = $query->execute();
     $pres_nid = $query->execute();
     $contents["#presentation_node"] = entity_load('node', array_pop($pres_nid));
     $contents["#presentation_node"] = entity_load('node', array_pop($pres_nid));

+ 2 - 15
sites/default/config/sync/core.entity_view_display.node.page.default.yml

@@ -13,7 +13,6 @@ dependencies:
   module:
   module:
     - file
     - file
     - image
     - image
-    - options
     - text
     - text
     - user
     - user
 id: node.page.default
 id: node.page.default
@@ -35,13 +34,6 @@ content:
     third_party_settings: {  }
     third_party_settings: {  }
     type: file_default
     type: file_default
     region: content
     region: content
-  field_view_mode:
-    weight: 5
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    type: list_default
-    region: content
   field_visuel:
   field_visuel:
     weight: 0
     weight: 0
     label: above
     label: above
@@ -51,13 +43,6 @@ content:
     third_party_settings: {  }
     third_party_settings: {  }
     type: image
     type: image
     region: content
     region: content
-  field_workflow_generic:
-    weight: 4
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    type: list_default
-    region: content
   links:
   links:
     weight: 3
     weight: 3
     region: content
     region: content
@@ -65,4 +50,6 @@ content:
     third_party_settings: {  }
     third_party_settings: {  }
 hidden:
 hidden:
   field_page_type: true
   field_page_type: true
+  field_view_mode: true
+  field_workflow_generic: true
   langcode: true
   langcode: true