Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-10452: Change the latest news card and minimal layouts to have different links and texts #698

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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