diff --git a/common-design-patterns/latest-news.md b/common-design-patterns/latest-news.md index a850b10e7..57faddae7 100644 --- a/common-design-patterns/latest-news.md +++ b/common-design-patterns/latest-news.md @@ -1,312 +1,134 @@ --- altLangPage: https://conception.canada.ca/configurations-conception-communes/nouveautes.html date: null -dateModified: '2019-11-28' -description: null +dateModified: '2024-04-03' +description: Guidance about using the latest news pattern on Canada.ca. title: Latest news --- - - -
-
- -
-
- +

Last updated: {{ page.dateModified }}

+

Latest news is a pattern to display the most recent Government of Canada newsroom items directly associated with the content of the page.

+
-

- The Latest news pattern features the most recent news items posted by the institution, organization or entity. -

-
-

- On this page -

- -
-
-

- When to use -

-

- Use this pattern on the following templates: -

- -
-
-

- What to avoid -

-

- Make sure this pattern doesn't get in the way of top task content. -

-
-
-

- How to implement -

-

- You can use either the - - beta - - or the - - stable - - version of this pattern. -

-

- Beta latest news -

-

- The beta version is used on the institutional landing page. The code is still under review. It may still be subject to minor changes. -

-

- The beta version will eventually replace the stable version. -

-
-
-
-
-

- News -

- -

- More: - - [Institution] news - -

-
-
-

- Features -

- -
-
- - Code - -
<div class="row col-lg-12">
-<section class="col-md-4 wb-feeds limit-3 gc-nws">
- <h2 class="h3">News</h2>
-<!-- demonstrates the layout - use json feed where applicable -->
-<ul class="feeds-cont list-unstyled lst-spcd feed-active">
- <li><a href="#">[News title]</a><br> <small class="feeds-date">YYYY-MM-DD HH:MM</small></li>
- <li><a href="#">[News title]</a><br> <small class="feeds-date">YYYY-MM-DD HH:MM</small></li>
- <li><a href="#">[News title]</a><br> <small class="feeds-date">YYYY-MM-DD HH:MM</small></li>
-</ul>
-<!-- json feed for news example
-<ul class="feeds-cont list-unstyled lst-spcd">
- <li> <a data-ajax="https://www.canada.ca/content/canadasite/api/nws/fds/en/web-feeds/revenue-agency.json" href="https://www.canada.ca/en/revenue-agency.atom.xml" rel="external">Canada Revenue Agency news items</a> </li>
- </ul>
--->
-<p>More: <a href="#" class="admin">[Institution] news</a></p>
-</section>
-<section class="col-md-8 gc-prtts">
- <h2 class="h3">Features</h2>
-  <div class="row wb-eqht">
-   <div class="col-md-6 mrgn-bttm-md">
-    <a class="figcaption hght-inhrt" href="#">
-     <figure class="well well-sm brdr-rds-0 hght-inhrt"><img class="img-responsive full-width" alt="#" src="https://wet-boew.github.io/themes-dist/GCWeb/img/360x203.png">
-      <figcaption class="h5">[Featured hyperlink text]</figcaption>
-        <p>Brief description of the feature being promoted.</p>
-        </figure>
-       </a>
-      </div>
-    <div class="col-md-6 mrgn-bttm-md">
-     <a class="figcaption hght-inhrt" href="https://www.canada.ca/en/revenue-agency/campaigns/my-benefits-credits.html">
-     <figure class="well well-sm brdr-rds-0 hght-inhrt"><img class="img-responsive full-width" alt="#" src="https://wet-boew.github.io/themes-dist/GCWeb/img/360x203.png">
-      <figcaption class="h5">[Featured hyperlink text]</figcaption>
-      <p>Brief description of the feature being promoted.</p>
-        </figure>
-     </a>
-     </div>
-    </div>
-  </section>
- </div>
-</div>
-
-
-
-
-

- Stable latest news -

+

On this page

+ +
+
+

When to use

+

Use the latest news pattern to offer news items that directly relate to your page content or your organization.

+
+
+

What to avoid

+

Don’t use this pattern if your organization doesn’t regularly issue news.

+

Don't use this pattern to display news by a different organization or for unrelated content.

+

Don’t use this pattern to display Features, which is a type of promotional product, not news.

+

Don’t use this pattern on navigational pages.

+

Don’t use this pattern when you want people to stay on the page and do their task.

+
+
+

Content and design

+

The label for the heading is “News” in English and “Nouvelles” in French.

+

Include three news items, followed by the link “More:” that directs people to the full newsroom feed, such as “More: [Institution] news”. Use descriptive link text so it's clear where the user will go if they click on the link.

+

Each news item is formatted in the following manner:

- The beta version will eventually replace the stable version. + [link to news release]
+ [YYYY-MM-DD HH:MM]

-
- - Guidance for the latest news stable version - -
    -
  • - It features the most recent news items posted by the entity -
  • -
  • - The heading is labelled “Latest” -
  • -
  • - 2 of the featured news items must include an image, a headline hyperlink, additional information and a description text: -
      -
    • - can include promotional content, and be prioritized at the institution’s discretion -
    • -
    • - keep description text short and concise -
    • -
    -
  • -
  • - The types of news products that must be listed as text-only are limited to only those available through news.gc.ca: -
      -
    • - media advisories -
    • -
    • - backgrounders -
    • +

      Design specifications

      +
      • - news releases + Text uses standard Canada.ca styles: +
      • - speeches + Layout +
          +
        • Maximum of 3 items listed at a time, use the “More” link to connect other news items
        • +
        • News items is coded as an unstyled list
        • +
      • -
      • - statements -
      • -
      - -
    • - Consult the - - Canada.ca GitHub page - - for details on image sizing -
    • -
    -
    -

    - Working example -

    - -
    -
    -

    - Examples -

    -
    -
    -
    -
    -
    - - Latest news pattern: 2 images - -
    - Screenshot illustrating the latest news pattern with 2 images on Canada.ca. Details on this graphic can be found in the surrounding text. -
    +
+

Visual examples

+
+
+
Latest news
+ Latest news pattern. Text version below: +
+ Image description: latest news +

+ A heading, News, is followed by three links. Each link title is [News title]. Under each link is a placeholder for the date and time, presented as YYYY-MM-DD HH:MM. Below the list of links and dates there is a line that + says More: [Institution] news. +

+
+
+
+
+
+

How to implement

+

Find working examples and code for implementing the latest news pattern.

+

GCweb (WET) theme implementation reference

+

The implementation reference includes how to configure elements of the design system.

+ +

Implementations

+

Determine what best suits the type of page you're creating.

+
+
+
+
+
+ GC-AEM +

For the Government of Canada Adobe Experience Manager (AEM):

+ +
+
+ CDTS +

For the Centrally Deployed Templates Solution (CDTS):

+ +
+
+ Drupal WxT +

For Drupal WxT:

+ +
+
+
-
-
-
- - - - + + +
+

Research and rationale

+

The latest news pattern is an optional pattern for the following mandatory templates:

+ +
+
+

Latest changes

+
+
+ +
+
Updated the guidance to include content and design specifications, visual examples and implementation guidance
+
diff --git a/images/latest-news-en.png b/images/latest-news-en.png new file mode 100644 index 000000000..1ec30ab1d Binary files /dev/null and b/images/latest-news-en.png differ