Skip to content

Commit

Permalink
VACMS-10944 Add Reusuable QAs to benefit detail pages (#1663)
Browse files Browse the repository at this point in the history
* Add reusuable QAs to benefit detail pages

* add qagroup to graphQL for benefits detail page query

---------

Co-authored-by: Chris Kim
  • Loading branch information
chriskim2311 authored Aug 16, 2023
1 parent 4dc5b26 commit 59f54b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/site/layouts/page.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@
{% endif %}

{% for block in fieldContentBlock %}
{% if block.entity.entityBundle == "q_a_group" %}
{% include "src/site/paragraphs/q_a_group_content.drupal.liquid" with entity = block.entity %}
{% else %}
{% assign bundleComponent = "src/site/paragraphs/" | append: block.entity.entityBundle %}
{% assign bundleComponentWithExtension = bundleComponent | append: ".drupal.liquid" %}
{% include {{ bundleComponentWithExtension }} with entity = block.entity %}
{% endif %}
{% endfor %}
{% if fieldRelatedLinks != empty %}
<div class="row">
Expand Down
2 changes: 2 additions & 0 deletions src/site/stages/build/drupal/graphql/page.graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const pageFragment = `
... downloadableFile
... embeddedImage
... numberCallout
... qaGroup
}
}
${FIELD_ALERT}
Expand All @@ -67,6 +68,7 @@ function getPageNodeSlice(operationName, offset, limit) {
${fragments.process}
${fragments.qaSection}
${fragments.qa}
${fragments.qaGroup}
${fragments.listOfLinkTeasers}
${fragments.reactWidget}
${fragments.spanishSummary}
Expand Down

0 comments on commit 59f54b0

Please sign in to comment.