From 3168b2779150f286fae48936d0c3e329f8886449 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Mon, 26 Jun 2023 09:29:28 -0500 Subject: [PATCH] =?UTF-8?q?Dr.B-LFTE:=20move=20=E2=80=98Editor=E2=80=99s?= =?UTF-8?q?=20Note=E2=80=99=20to=201st=20slot=20and=203rd=20slot=20add=20i?= =?UTF-8?q?mage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tenants/all/templates/drb-lfte.marko | 130 ++++++++++++++++++++++++++- 1 file changed, 129 insertions(+), 1 deletion(-) diff --git a/tenants/all/templates/drb-lfte.marko b/tenants/all/templates/drb-lfte.marko index 2f5c759..a189568 100644 --- a/tenants/all/templates/drb-lfte.marko +++ b/tenants/all/templates/drb-lfte.marko @@ -1 +1,129 @@ - +import { get } from "@parameter1/base-cms-object-path"; +import { parseBooleanHeader } from "@parameter1/base-cms-utils"; +import queryFragment from "@science-medicine-group/package-common/graphql/fragments/content-list"; +import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value"; + +$ const { website, config, req } = out.global; +$ const { newsletter, date } = data; + +$ const emailX = config.get("emailX"); +$ const nativeX = config.getAsObject("nativeX"); +$ const { id, alias, name, pageNode } = input; + +$ const newsletterConfig = config.get(newsletter.alias); +$ const caseBlock = get(newsletterConfig, "caseBlock"); +$ const ctaLinkStyle = defaultValue(newsletterConfig.ctaLinkStyle, undefined); + +$ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({ + id: node.ID, + type: 'Case', + shortName: node.name, + teaser: node.description, + siteContext: { url: `https://my.drbicuspid.com/cases/${node.url}` }, + primaryImage: { src: node.imagepath } + }))); + + + <@head> + + + <@body style="padding:0; margin:0;font-family: 'Roboto', Arial, sans-serif; -webkit-text-size-adjust:100%;"> + + <@body> + + + + + + + + + + + + + + + + + + + + + + +
+

+ Case of the Week +

+
+ + + + + + + + + + +
+ +