Skip to content

Commit

Permalink
Merge pull request #698 from City-of-Helsinki/UHF-10452_latest_news_l…
Browse files Browse the repository at this point in the history
…ink_modification

UHF-10452: Change the latest news card and minimal layouts to have different links and texts
  • Loading branch information
teroelonen authored Aug 28, 2024
2 parents 558feb4 + 1387f84 commit d6502bd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ selected color palette of the node that the paragraph is added to.

#### Latest news (front_page_latest_news)

_Latest news_ paragraph lists six latest news and links to the news archive page. You can select between two designs
for the listing (minimal and cards). The link for the news archive page is hardcoded, and it is done in the view called
`frontpage_news`. The configuration is found from `views.view.frontpage_news.yml` and the link to news archive page is
defined [here](https://github.com/City-of-Helsinki/drupal-helfi-etusivu/blob/e2643195b8fc2989da835313c052ae533b8e0143/conf/cmi/views.view.frontpage_news.yml#L594).
_Latest news_ paragraph lists six latest news and links to the news archive page or the "What's new" page. You can
select between two designs for the listing (minimal and cards). The links for the news archive page / "What's new" page
are hardcoded, and it is done in the view called `frontpage_news`. The minimal design links to the "What's new" page and
the card design links to the news archive page. The configuration is found from `views.view.frontpage_news.yml` and
the links are defined there for each display.

#### News update (news_update)

Expand Down
6 changes: 3 additions & 3 deletions conf/cmi/language/fi/views.view.frontpage_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ display:
latest_news_cards:
display_options:
title: 'Uusimmat uutiset'
use_more_text: 'Katso kaikki uutiset'
use_more_text: 'Etsi uutisia'
link_url: /uutiset/etsi-uutisia
display_title: 'Uusimmat uutiset'
latest_news_minimal:
display_options:
title: 'Uusimmat uutiset'
use_more_text: 'Katso kaikki uutiset'
link_url: /uutiset/etsi-uutisia
use_more_text: 'Katso kaikki ajankohtaiset'
link_url: /uutiset
display_title: 'Uusimmat uutiset'
6 changes: 3 additions & 3 deletions conf/cmi/language/sv/views.view.frontpage_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ display:
latest_news_cards:
display_options:
title: 'Senaste nyheter'
use_more_text: 'Se alla nyheter'
use_more_text: 'Sök efter nyheter'
link_url: /nyheter/sok-efter-nyheter
latest_news_minimal:
display_options:
title: 'Senaste nyheter'
use_more_text: 'Se alla nyheter'
link_url: /nyheter/sok-efter-nyheter
use_more_text: 'Se alla aktuella'
link_url: /nyheter
6 changes: 3 additions & 3 deletions conf/cmi/views.view.frontpage_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ display:
display_description: ''
use_more: true
use_more_always: true
use_more_text: 'See all news'
use_more_text: 'Search for news'
link_display: custom_url
link_url: /news/search-for-news
display_extenders: { }
Expand Down Expand Up @@ -795,9 +795,9 @@ display:
display_description: ''
use_more: true
use_more_always: true
use_more_text: 'See all news'
use_more_text: "See what's new"
link_display: custom_url
link_url: /news/search-for-news
link_url: /news
display_extenders: { }
cache_metadata:
max-age: -1
Expand Down

0 comments on commit d6502bd

Please sign in to comment.