瀏覽代碼

newsletter issues visible on front with right alias

bach 3 年之前
父節點
當前提交
383fec17e8

+ 24 - 0
config/sync/pathauto.pattern.simplenews.yml

@@ -0,0 +1,24 @@
+uuid: 6e84b134-54a0-4e64-b163-0698bc11eedf
+langcode: fr
+status: true
+dependencies:
+  module:
+    - node
+id: simplenews
+label: simplenews
+type: 'canonical_entities:node'
+pattern: 'newsletter/[node:simplenews_issue]/[node:title]'
+selection_criteria:
+  efc914c4-688c-412a-a745-e61a7c1535ae:
+    id: node_type
+    bundles:
+      simplenews_issue: simplenews_issue
+    negate: false
+    context_mapping:
+      node: node
+    uuid: efc914c4-688c-412a-a745-e61a7c1535ae
+selection_logic: and
+weight: -10
+relationships:
+  'node:langcode:language':
+    label: Langue

File diff suppressed because it is too large
+ 41 - 3
web/themes/custom/materiotheme/assets/dist/main.css


二進制
web/themes/custom/materiotheme/assets/dist/main.css.gz


File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


二進制
web/themes/custom/materiotheme/assets/dist/main.js.gz


File diff suppressed because it is too large
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 3 - 1
web/themes/custom/materiotheme/assets/scripts/main.js

@@ -96,7 +96,9 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu,
           drupalDecoupled.route_name.indexOf('flagging_collection') !== -1 ||
           drupalDecoupled.route_name.indexOf('user') !== -1 ||
           drupalDecoupled.route_name.indexOf('entity.webform.canonical') !== -1 ||
-          drupalDecoupled.route_name.indexOf('entity.webform.confirmation') !== -1) {
+          drupalDecoupled.route_name.indexOf('entity.webform.confirmation') !== -1 ||
+          (drupalDecoupled.route_name === 'entity.node.canonical' && drupalDecoupled.entity_bundle === 'simplenews_issue')
+      ) {
         console.debug('NO VUEJS')
         return true
       } else {

+ 2 - 1
web/themes/custom/materiotheme/assets/styles/main.scss

@@ -552,7 +552,8 @@ header[role="banner"]{
 				padding:0.5em 1em;
 			}
 			body.path-blabla &,
-			body.path-checkout & {
+			body.path-checkout &,
+      body.page-node-type-simplenews-issue & {
 				color: #fff;
 				background-color: $color-blabla;
 			}

Some files were not shown because too many files changed in this diff