Closed sarinapadilla closed 2 years ago
@sarinapadilla This ticket lists "update syndication template" as one of the tasks. However, as far as I can tell, the existing syndication template never includes the "On This Page" section.
{#
/**
* @file
* Theme override for HHS Syndication of Cancer Information Summaries.
*
* This is a stripped-down version of the body, restricted to the
* information in the summary. The bundle and theme names are embedded
* in the template's file name to ensure that this overriding template
* is selected.
*/
#}
{% import '@cgov_common/content_page_macros.twig' as contentPageMacros %}
<!-- ********************************* BEGIN Page Content ********************************** -->
<h2 id="bodyTitle">{{ node.label }}</h2>
<div id="bodyContent">
<div class="summaryPage">
{{ content.field_summary_sections }}
</div>
</div>
<div id="footer">
{{ contentPageMacros.syndicationFooter(content) }}
</div>
Were you thinking that we should change what we send to HHS syndication to start including the OTP block unless the new flag is set? My guess is that the comment at the top of the template reflected an intention to leave out stuff which was not included in the original summary, but was instead generated by the front end.
I proceeded with the assumption that it would not be appropriate to add the OTP links to the syndication output.
Installed on https://ncigovcdode444.prod.acquia-sites.com/
As the system, I want to render a Cancer Information Summary content item with an optional OTP section, so that the users can have the option of either displaying or not displaying the OTP depending on the page’s SEO-informed structure for the SVPC initiative.
We need to update Drupal to reflect the inclusion of a “Hide On This Page” field on CDR cancer information summary documents. The OTP will display on the front-end depending on the value of this field. This will also update the Publish Preview display of the summary in the CDR.
This field should default to show the OTP.
Tasks: update schema for incoming CDR cancer information summaries, update pdq_cancer_information_summary UI, update pdq_cancer_information_summary front-end display (which also updates CDR Publish Preview), update syndication template
Acceptance Criteria
Drupal/CGov
UI:
Desktop:
Tablet:
Mobile:
Publish Preview
Resources:
Notes
Some complementary notes if necessary:
Solution
Prerequisites
Tasks
Technical Notes